CINXE.COM

Ruby Programming Language

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ruby Programming Language</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta itemprop="image" content="https://www.ruby-lang.org/images/header-ruby-logo@2x.png"> <meta name="description" content=""> <link rel="stylesheet" type="text/css" href="/stylesheets/normalize.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/main.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/pygments.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/mobile.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/print.css"> <link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic&amp;subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'> <link rel="canonical" href="https://www.ruby-lang.org/en/"> <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> <link href="/en/feeds/news.rss" rel="alternate" title="Recent News (RSS)" type="application/rss+xml"> <script type="text/javascript" src="/javascripts/jquery.min.js"></script> <script type="text/javascript" src="/javascripts/page.js"></script> <script type="text/javascript" src="/javascripts/examples.js"></script> </head> <body id="home-page-layout"> <div id="header"> <div id="header_content" class="container"> <a href="/en/"> <h1>Ruby</h1> <h2>A Programmer's Best Friend</h2> </a> <div class="site-links"> <a href="/en/" class="home">Home</a> <a href="/en/downloads/">Downloads</a> <a href="/en/documentation/">Documentation</a> <a href="/en/libraries/">Libraries</a> <a href="/en/community/">Community</a> <a href="/en/news/">News</a> <a href="/en/security/">Security</a> <a href="/en/about/">About Ruby</a> <a href="#" class="menu selected">Menu</a> </div> <div id="search-box"> <form id="search-form" action="https://www.google.com/cse"> <table class="fieldset"> <tr> <td> <input class="field" type="text" name="q" size="31" style="background: white url(//www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat" onfocus="this.style.background='white'" onblur="if (/^\s*$/.test(this.value)) this.style.background='white url(//www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat'"/> </td> <td> <input type="hidden" name="cx" value="013598269713424429640:g5orptiw95w" /> <input type="hidden" name="ie" value="UTF-8" /> <input class="button" type="submit" name="sa" value="Search" /> </td> </tr> </table> </form> </div> </div> </div> <div id="page"> <div id="intro-container"> <div class="container"> <div id="intro-wrapper"> <div id="intro"> <h1>Ruby is...</h1> <p> A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. </p> <a href="downloads/" class="download-link">Download Ruby</a> or <a href="about/">Read More...</a> </div> <div id="code"><noscript><div class="highlight"><pre><code class="ruby"> <span class="c1"># The famous Hello World</span> <span class="c1"># Program is trivial in</span> <span class="c1"># Ruby. Superfluous:</span> <span class="c1">#</span> <span class="c1"># * A &quot;main&quot; method</span> <span class="c1"># * Newline</span> <span class="c1"># * Semicolons</span> <span class="c1">#</span> <span class="c1"># Here is the Code:</span> <span class="nb">puts</span> <span class="s2">&quot;Hello World!&quot;</span> </code></pre></div></noscript></div> </div> </div> </div> <div id="main-wrapper" class="container"> <div id="main"> <div id="content-wrapper"> <!-- //--> <div id="content"> <div class="post"> <h3><a href="/en/news/2024/11/05/ruby-3-3-6-released/">Ruby 3.3.6 Released</a></h3> <p>Ruby 3.3.6 has been released.</p> <p class="post-link"><a href="/en/news/2024/11/05/ruby-3-3-6-released/">Continue Reading...</a></p> <p class="post-info">Posted by k0kubun on 5 Nov 2024</p> </div> <div class="post"> <h3><a href="/en/news/2024/10/30/ruby-3-2-6-released/">Ruby 3.2.6 Released</a></h3> <p>Ruby 3.2.6 has been released.</p> <p class="post-link"><a href="/en/news/2024/10/30/ruby-3-2-6-released/">Continue Reading...</a></p> <p class="post-info">Posted by nagachika on 30 Oct 2024</p> </div> <div class="post"> <h3><a href="/en/news/2024/10/28/redos-rexml-cve-2024-49761/">CVE-2024-49761: ReDoS vulnerability in REXML</a></h3> <p>There is a ReDoS vulnerability in REXML gem. This vulnerability has been assigned the CVE identifier <a href="https://www.cve.org/CVERecord?id=CVE-2024-49761">CVE-2024-49761</a>. We strongly recommend upgrading the REXML gem.</p> <p class="post-link"><a href="/en/news/2024/10/28/redos-rexml-cve-2024-49761/">Continue Reading...</a></p> <p class="post-info">Posted by kou on 28 Oct 2024</p> </div> <div class="post"> <h3><a href="/en/news/2024/10/07/ruby-3-4-0-preview2-released/">Ruby 3.4.0 preview2 Released</a></h3> <p>We are pleased to announce the release of Ruby 3.4.0-preview2.</p> <p class="post-link"><a href="/en/news/2024/10/07/ruby-3-4-0-preview2-released/">Continue Reading...</a></p> <p class="post-info">Posted by naruse on 7 Oct 2024</p> </div> <div id="news"> <h3>Other News</h3> <ul> <li> <a href="/en/news/2024/09/03/3-3-5-released/">Ruby 3.3.5 Released</a><br> <span class="post-info">Posted by k0kubun on 3 Sep 2024</span> </li> <li> <a href="/en/news/2024/08/22/dos-rexml-cve-2024-43398/">CVE-2024-43398: DoS vulnerability in REXML</a><br> <span class="post-info">Posted by kou on 22 Aug 2024</span> </li> <li> <a href="/en/news/2024/08/01/dos-rexml-cve-2024-41946/">CVE-2024-41946: DoS vulnerability in REXML</a><br> <span class="post-info">Posted by kou on 1 Aug 2024</span> </li> <li> <a href="/en/news/2024/08/01/dos-rexml-cve-2024-41123/">CVE-2024-41123: DoS vulnerabilities in REXML</a><br> <span class="post-info">Posted by kou on 1 Aug 2024</span> </li> <li> <a href="/en/news/2024/07/26/ruby-3-2-5-released/">Ruby 3.2.5 Released</a><br> <span class="post-info">Posted by nagachika on 26 Jul 2024</span> </li> <li> <a href="/en/news/2024/07/16/dos-rexml-cve-2024-39908/">CVE-2024-39908: DoS vulnerability in REXML</a><br> <span class="post-info">Posted by watson1978 on 16 Jul 2024</span> </li> </ul> <p class="more"> <a href="news/">More News...</a> </p> </div> </div> </div> <hr class="hidden-modern" /> <div id="sidebar-wrapper"> <div id="sidebar"> <div class="navigation"> <h3><strong>Get Started</strong>, it's easy!</h3> <ul class="menu"> <li><a href="https://try.ruby-lang.org/">Try Ruby! (in your browser)</a></li> <li><a href="/en/documentation/quickstart/">Ruby in Twenty Minutes</a></li> <li><a href="/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a></li> </ul> </div> <div class="navigation"> <h3><strong>Explore</strong> a new world…</h3> <ul class="menu"> <li><a href="/en/documentation/">Documentation</a></li> <li><a href="https://rubybib.org/">Academic Research</a></li> <li><a href="/en/libraries/">Libraries</a></li> <li><a href="/en/documentation/success-stories/">Success Stories</a></li> </ul> </div> <div class="navigation"> <h3><strong>Participate</strong> in a friendly and growing community.</h3> <ul> <li><a href="/en/community/mailing-lists/">Mailing Lists</a>: Talk about Ruby with programmers from all around the world.</li> <li><a href="/en/community/user-groups/">User Groups</a>: Get in contact with Rubyists in your area.</li> <li><a href="/en/community/weblogs/">Blogs and Newsletters</a>: Read about what’s happening right now in the Ruby community.</li> <li><a href="/en/community/ruby-core/">Ruby Core</a>: Help polish the rough edges of the latest Ruby.</li> <li><a href="https://bugs.ruby-lang.org/">Issue Tracking</a>: Report or help solve issues in Ruby.</li> </ul> </div> <h3>Syndicate</h3> <p><a href="/en/feeds/news.rss">Recent News (RSS)</a></p> </div> </div> <hr class="hidden-modern" /> </div> </div> </div> <div class="container"> <div id="footer"> <div class="site-links"> <a href="/en/" class="home">Home</a> <a href="/en/downloads/">Downloads</a> <a href="/en/documentation/">Documentation</a> <a href="/en/libraries/">Libraries</a> <a href="/en/community/">Community</a> <a href="/en/news/">News</a> <a href="/en/security/">Security</a> <a href="/en/about/">About Ruby</a> </div> <p> This site in other languages: <a href="/bg/">Български</a>, <a href="/de/">Deutsch</a>, <a href="/en/">English</a>, <a href="/es/">Español</a>, <a href="/fr/">Français</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/it/">Italiano</a>, <a href="/ja/">日本語</a>, <a href="/ko/">한국어</a>, <a href="/pl/">polski</a>, <a href="/pt/">Português</a>, <a href="/ru/">Русский</a>, <a href="/tr/">Türkçe</a>, <a href="/vi/">Tiếng Việt</a>, <a href="/zh_cn/">简体中文</a>, <a href="/zh_tw/">繁體中文</a>. </p> <p><a href="/en/about/website/">This website</a> is proudly maintained by members of the Ruby community.</p> </div> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10