CINXE.COM
Linguagem de Programação Ruby
<!DOCTYPE html> <html> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.ruby-lang.org/pt/","20240516083517","https://web.archive.org/","web","/_static/", "1715848517"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="utf-8"> <title>Linguagem de Programação Ruby</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta itemprop="image" content="https://web.archive.org/web/20240516083517im_/https://www.ruby-lang.org/images/header-ruby-logo@2x.png"> <meta name="description" content=""> <link rel="stylesheet" type="text/css" href="/web/20240516083517cs_/https://www.ruby-lang.org/stylesheets/normalize.css"> <link rel="stylesheet" type="text/css" href="/web/20240516083517cs_/https://www.ruby-lang.org/stylesheets/main.css"> <link rel="stylesheet" type="text/css" href="/web/20240516083517cs_/https://www.ruby-lang.org/stylesheets/pygments.css"> <link rel="stylesheet" type="text/css" href="/web/20240516083517cs_/https://www.ruby-lang.org/stylesheets/mobile.css"> <link rel="stylesheet" type="text/css" href="/web/20240516083517cs_/https://www.ruby-lang.org/stylesheets/print.css"> <link href="https://web.archive.org/web/20240516083517cs_/https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic&subset=latin,cyrillic,greek,vietnamese" rel="stylesheet" type="text/css"> <link rel="canonical" href="https://web.archive.org/web/20240516083517/https://www.ruby-lang.org/pt/"> <link rel="shortcut icon" type="image/x-icon" href="/web/20240516083517im_/https://www.ruby-lang.org/favicon.ico"> <link href="/web/20240516083517/https://www.ruby-lang.org/pt/feeds/news.rss" rel="alternate" title="Em português" type="application/rss+xml"> <script type="text/javascript" src="/web/20240516083517js_/https://www.ruby-lang.org/javascripts/jquery.min.js"></script> <script type="text/javascript" src="/web/20240516083517js_/https://www.ruby-lang.org/javascripts/page.js"></script> <script type="text/javascript" src="/web/20240516083517js_/https://www.ruby-lang.org/javascripts/examples.js"></script> </head> <body id="home-page-layout"> <div id="header"> <div id="header_content" class="container"> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/"> <h1>Ruby</h1> <h2>O melhor amigo do programador</h2> </a> <div class="site-links"> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/" class="home">Início</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/downloads/">Downloads</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/">Documentação</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/libraries/">Módulos</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/">Comunidade</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/">Notícias</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/security/">Segurança</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/about/">Sobre Ruby</a> <a href="#" class="menu selected">Menu</a> </div> <div id="search-box"> <form id="search-form" action="https://web.archive.org/web/20240516083517/https://www.google.com/cse"> <table class="fieldset"> <tr> <td> <input class="field" type="text" name="q" size="31" style="background: white url(//web.archive.org/web/20240516083517im_/https://www.google.com/coop/intl/pt/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/pt/images/google_custom_search_watermark.gif) left no-repeat'"/> </td> <td> <input type="hidden" name="ie" value="UTF-8"/> <input class="button" type="submit" name="sa" value="Procurar"/> </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 é...</h1> <p> Uma linguagem dinâmica, open source com foco na simplicidade e na produtividade. Tem uma sintaxe elegante de leitura natural e fácil escrita. </p> <a href="downloads/" class="download-link">Baixe o Ruby</a> ou <a href="about/">Leia Mais...</a> </div> <div id="code"></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="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/12/25/ruby-3-2-0-released/">Lançado Ruby 3.2.0</a></h3> <p class="post-link"><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/12/25/ruby-3-2-0-released/">Continuar a Leitura...</a></p> <p class="post-info">Escrito por naruse em 25/12/2022</p> </div> <div class="post"> <h3><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/12/06/ruby-3-2-0-rc1-released/">Lançado Ruby 3.2.0 RC 1</a></h3> <p class="post-link"><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/12/06/ruby-3-2-0-rc1-released/">Continuar a Leitura...</a></p> <p class="post-info">Escrito por naruse em 06/12/2022</p> </div> <div class="post"> <h3><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/24/ruby-3-1-3-released/">Lançado Ruby 3.1.3</a></h3> <p>Ruby 3.1.3 foi lançado.</p> <p class="post-link"><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/24/ruby-3-1-3-released/">Continuar a Leitura...</a></p> <p class="post-info">Escrito por nagachika em 24/11/2022</p> </div> <div class="post"> <h3><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/24/ruby-3-0-5-released/">Lançado Ruby 3.0.5</a></h3> <p>Ruby 3.0.5 foi lançado.</p> <p class="post-link"><a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/24/ruby-3-0-5-released/">Continuar a Leitura...</a></p> <p class="post-info">Escrito por usa em 24/11/2022</p> </div> <div id="news"> <h3>Outras Notícias</h3> <ul> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/24/ruby-2-7-7-released/">Lançado Ruby 2.7.7</a><br> <span class="post-info">Escrito por usa em 24/11/2022</span> </li> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/">CVE-2021-33621: HTTP response splitting na CGI</a><br> <span class="post-info">Escrito por mame em 22/11/2022</span> </li> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2020/10/02/ruby-2-7-2-released/">Lançado Ruby 2.7.2</a><br> <span class="post-info">Escrito por nagachika em 02/10/2020</span> </li> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2020/09/29/http-request-smuggling-cve-2020-25613/">CVE-2020-25613: Potencial Vulnerabilidade de Smuggling de Requisições HTTP no WEBrick</a><br> <span class="post-info">Escrito por mame em 29/09/2020</span> </li> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2020/09/25/ruby-3-0-0-preview1-released/">Lançado Ruby 3.0.0 Preview 1</a><br> <span class="post-info">Escrito por naruse em 25/09/2020</span> </li> <li> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/2019/10/16/fukuoka-ruby-award-2020/">Competição 2020 Fukuoka Ruby Award - Submissões serão julgadas por Matz</a><br> <span class="post-info">Escrito por Fukuoka Ruby em 16/10/2019</span> </li> </ul> <p class="more"> <a href="news/">Mais Notícias...</a> </p> </div> </div> </div> <hr class="hidden-modern"/> <div id="sidebar-wrapper"> <div id="sidebar"> <div class="navigation"> <h3><strong>Primeiros passos</strong>, é fácil!</h3> <ul class="menu"> <li><a href="https://web.archive.org/web/20240516083517/https://try.ruby-lang.org/">Try Ruby! (in your browser)</a></li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/quickstart/">Ruby em Vinte Minutos</a></li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/ruby-from-other-languages/">Ruby a partir de outras linguagens</a></li> </ul> </div> <div class="navigation"> <h3><strong>Explore</strong> um novo mundo…</h3> <ul class="menu"> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/">Documentação</a></li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/libraries/">Bibliotecas</a></li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/success-stories/">Histórias de sucesso</a></li> </ul> </div> <div class="navigation"> <h3><strong>Participe</strong> de uma comunidade simpática e em crescimento.</h3> <ul> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/mailing-lists/">Listas de E-mail</a>: Fale sobre Ruby com programadores de todo o mundo.</li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/user-groups/">Grupos de Usuários</a>: Entre em contato com colegas da sua área.</li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/weblogs/">Weblogs</a>: Leia sobre o que está acontecendo agora na comunidade Ruby.</li> <li><a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/ruby-core/">Ruby Core</a>: Ajude a polir as arestas da última versão do Ruby.</li> <li><a href="https://web.archive.org/web/20240516083517/https://bugs.ruby-lang.org/">Issue Tracking</a>: Informe ou ajude a resolver problemas do Ruby.</li> </ul> </div> <h3>Feeds de notícias (RSS)</h3> <p><a href="/web/20240516083517/https://www.ruby-lang.org/pt/feeds/news.rss">Em português</a></p> </div> </div> <hr class="hidden-modern"/> </div> </div> </div> <div class="container"> <div id="footer"> <div class="site-links"> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/" class="home">Início</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/downloads/">Downloads</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/documentation/">Documentação</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/libraries/">Módulos</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/community/">Comunidade</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/news/">Notícias</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/security/">Segurança</a> <a href="/web/20240516083517/https://www.ruby-lang.org/pt/about/">Sobre Ruby</a> </div> <p> Este site em outros idiomas: <a href="/web/20240516083517/https://www.ruby-lang.org/bg/">Български</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/de/">Deutsch</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/en/">English</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/es/">Español</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/fr/">Français</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/id/">Bahasa Indonesia</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/it/">Italiano</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/ja/">日本語</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/ko/">한국어</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/pl/">polski</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/pt/">Português</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/ru/">Русский</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/tr/">Türkçe</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/vi/">Tiếng Việt</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/zh_cn/">简体中文</a>, <a href="/web/20240516083517/https://www.ruby-lang.org/zh_tw/">繁體中文</a>. </p> <p><a href="/web/20240516083517/https://www.ruby-lang.org/pt/about/website/">Este website</a> é mantido com orgulho por membros da comunidade Ruby.</p> </div> </div> </body> </html> <!-- FILE ARCHIVED ON 08:35:17 May 16, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:27:26 Dec 11, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.489 exclusion.robots: 0.025 exclusion.robots.policy: 0.015 esindex: 0.01 cdx.remote: 18.515 LoadShardBlock: 330.322 (3) PetaboxLoader3.datanode: 95.194 (4) PetaboxLoader3.resolve: 400.178 (2) load_resource: 250.371 -->