CINXE.COM
Le langage 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/fr/","20240417145045","https://web.archive.org/","web","/_static/", "1713365445"); </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>Le langage Ruby</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta itemprop="image" content="https://web.archive.org/web/20240417145045im_/https://www.ruby-lang.org/images/header-ruby-logo@2x.png"> <meta name="description" content=""> <link rel="stylesheet" type="text/css" href="/web/20240417145045cs_/https://www.ruby-lang.org/stylesheets/normalize.css"> <link rel="stylesheet" type="text/css" href="/web/20240417145045cs_/https://www.ruby-lang.org/stylesheets/main.css"> <link rel="stylesheet" type="text/css" href="/web/20240417145045cs_/https://www.ruby-lang.org/stylesheets/pygments.css"> <link rel="stylesheet" type="text/css" href="/web/20240417145045cs_/https://www.ruby-lang.org/stylesheets/mobile.css"> <link rel="stylesheet" type="text/css" href="/web/20240417145045cs_/https://www.ruby-lang.org/stylesheets/print.css"> <link href="https://web.archive.org/web/20240417145045cs_/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/20240417145045/https://www.ruby-lang.org/fr/"> <link rel="shortcut icon" type="image/x-icon" href="/web/20240417145045im_/https://www.ruby-lang.org/favicon.ico"> <link href="/web/20240417145045/https://www.ruby-lang.org/fr/feeds/news.rss" rel="alternate" title="Actualité récente (RSS)" type="application/rss+xml"> <script type="text/javascript" src="/web/20240417145045js_/https://www.ruby-lang.org/javascripts/jquery.min.js"></script> <script type="text/javascript" src="/web/20240417145045js_/https://www.ruby-lang.org/javascripts/page.js"></script> <script type="text/javascript" src="/web/20240417145045js_/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/20240417145045/https://www.ruby-lang.org/fr/"> <h1>Ruby</h1> <h2>A Programmer's Best Friend</h2> </a> <div class="site-links"> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/" class="home">Home</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/downloads/">Téléchargements</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/">Documentation</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/libraries/">Bibliothèques</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/">Communauté</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/">Actualités</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/security/">Sécurité</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/about/">À propos de Ruby</a> <a href="#" class="menu selected">Menu</a> </div> <div id="search-box"> <form id="search-form" action="https://web.archive.org/web/20240417145045/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/20240417145045im_/https://www.google.com/coop/intl/fr/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/fr/images/google_custom_search_watermark.gif) left no-repeat'"/> </td> <td> <input type="hidden" name="cx" value="016749562256550695330:efcmgh3a1ac"/> <input type="hidden" name="ie" value="UTF-8"/> <input class="button" type="submit" name="sa" value="Recherche"/> </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> est un langage open-source dynamique qui met l'accent sur la simplicité et la productivité. Sa syntaxe élégante en facilite la lecture et l'écriture. </p> <a href="downloads/" class="download-link">Télécharger Ruby</a> ou <a href="about/">En savoir plus...</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/20240417145045/https://www.ruby-lang.org/fr/news/2022/02/18/ruby-3-1-1-released/">Ruby 3.1.1 est disponible</a></h3> <p>Ruby 3.1.1 est disponible.</p> <p class="post-link"><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2022/02/18/ruby-3-1-1-released/">Lire la suite...</a></p> <p class="post-info">Posté par naruse le 2022-02-18</p> </div> <div class="post"> <h3><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/12/25/ruby-3-1-0-released/">Ruby 3.1.0 est disponible</a></h3> <p class="post-link"><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/12/25/ruby-3-1-0-released/">Lire la suite...</a></p> <p class="post-info">Posté par naruse le 2021-12-25</p> </div> <div class="post"> <h3><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/ruby-3-0-3-released/">Ruby 3.0.3 est disponible</a></h3> <p>Ruby 3.0.3 est disponible.</p> <p class="post-link"><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/ruby-3-0-3-released/">Lire la suite...</a></p> <p class="post-info">Posté par nagachika le 2021-11-24</p> </div> <div class="post"> <h3><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/ruby-2-7-5-released/">Ruby 2.7.5 est disponible</a></h3> <p>Ruby 2.7.5 est disponible.</p> <p class="post-link"><a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/ruby-2-7-5-released/">Lire la suite...</a></p> <p class="post-info">Posté par usa le 2021-11-24</p> </div> <div id="news"> <h3>Autres actualités</h3> <ul> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/ruby-2-6-9-released/">Ruby 2.6.9 est disponible</a><br> <span class="post-info">Posté par usa le 2021-11-24</span> </li> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/">CVE-2021-41819: Usurpation de préfixes de cookie dans CGI::Cookie.parse</a><br> <span class="post-info">Posté par mame le 2021-11-24</span> </li> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/24/buffer-overrun-in-cgi-escape_html-cve-2021-41816/">CVE-2021-41816: Dépassement de la mémoire tampon dans CGI.escape_html</a><br> <span class="post-info">Posté par mame le 2021-11-24</span> </li> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817/">CVE-2021-41817: Vulnérabilité de déni de service d'expression régulière (ReDoS) sur les méthodes d'analyse de date</a><br> <span class="post-info">Posté par mame le 2021-11-15</span> </li> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/11/09/ruby-3-1-0-preview1-released/">Ruby 3.1.0 Preview 1 est disponible</a><br> <span class="post-info">Posté par naruse le 2021-11-09</span> </li> <li> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/2021/08/03/fukuoka-ruby-award-2022/">Concours 2022 Fukuoka Ruby Award - Les candidatures seront jugées par Matz</a><br> <span class="post-info">Posté par Fukuoka Ruby le 2021-08-03</span> </li> </ul> <p class="more"> <a href="news/">Plus d’actualités...</a> </p> </div> </div> </div> <hr class="hidden-modern"/> <div id="sidebar-wrapper"> <div id="sidebar"> <div class="navigation"> <h3><strong>Lancez-vous</strong>, c’est facile !</h3> <ul class="menu"> <li><a href="https://web.archive.org/web/20240417145045/https://try.ruby-lang.org/">Essayez Ruby !</a></li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/quickstart/">Apprenez Ruby en vingt minutes</a></li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/ruby-from-other-languages/">Vous venez d'un autre langage ?</a></li> </ul> </div> <div class="navigation"> <h3><strong>Explorez</strong> un nouvel univers…</h3> <ul class="menu"> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/">Documentation</a></li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/libraries/">Bibliothèques</a></li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/success-stories/">Témoignages</a></li> </ul> </div> <div class="navigation"> <h3><strong>Participez</strong> à la communauté</h3> <ul> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/mailing-lists/">Listes de diffusion</a>: discutez de Ruby avec des programmeurs du monde entier.</li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/user-groups/">Groupes d’utilisateur</a>: entrez en contact avec d’autres rubyistes de votre région.</li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/weblogs/">Blogs</a>: suivez toute l’actualité de la communauté Ruby.</li> <li><a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/ruby-core/">Ruby Core</a>: apportez votre aide à l'élaboration du prochain Ruby.</li> <li><a href="https://web.archive.org/web/20240417145045/https://bugs.ruby-lang.org/">Rapports de bugs</a>: aidez à corriger et améliorer Ruby.</li> </ul> </div> <h3>Syndication</h3> <p><a href="/web/20240417145045/https://www.ruby-lang.org/fr/feeds/news.rss">Actualité récente (RSS)</a></p> </div> </div> <hr class="hidden-modern"/> </div> </div> </div> <div class="container"> <div id="footer"> <div class="site-links"> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/" class="home">Home</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/downloads/">Téléchargements</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/documentation/">Documentation</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/libraries/">Bibliothèques</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/community/">Communauté</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/news/">Actualités</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/security/">Sécurité</a> <a href="/web/20240417145045/https://www.ruby-lang.org/fr/about/">À propos de Ruby</a> </div> <p> Autres langues disponibles : <a href="/web/20240417145045/https://www.ruby-lang.org/bg/">Български</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/de/">Deutsch</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/en/">English</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/es/">Español</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/fr/">Français</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/id/">Bahasa Indonesia</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/it/">Italiano</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/ja/">日本語</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/ko/">한국어</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/pl/">polski</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/pt/">Português</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/ru/">Русский</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/tr/">Türkçe</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/vi/">Tiếng Việt</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/zh_cn/">简体中文</a>, <a href="/web/20240417145045/https://www.ruby-lang.org/zh_tw/">繁體中文</a>. </p> <p>Ce site est propulsé par Ruby et <a href="https://web.archive.org/web/20240417145045/http://www.jekyllrb.com/">Jekyll</a>. Il est fièrement maintenu par des membres de la communauté Ruby. Contribuez en vous rendant sur <a href="https://web.archive.org/web/20240417145045/https://github.com/ruby/www.ruby-lang.org/">GitHub</a> ou contactez le <a href="https://web.archive.org/web/20240417145045/mailto:webmaster@ruby-lang.org">webmaster</a> pour toute question ou tout commentaire.</p> </div> </div> </body> </html> <!-- FILE ARCHIVED ON 14:50:45 Apr 17, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 19:57:17 Dec 02, 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.665 exclusion.robots: 0.029 exclusion.robots.policy: 0.016 esindex: 0.013 cdx.remote: 12.322 LoadShardBlock: 215.38 (3) PetaboxLoader3.datanode: 108.056 (4) PetaboxLoader3.resolve: 140.307 (2) load_resource: 131.766 -->