CINXE.COM
Ruby – Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="sv" dir="ltr"> <head> <meta charset="UTF-8"> <title>Ruby – Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )svwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t."," \t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],"wgRequestId":"4150133c-f6f2-43d0-8a7e-5c0b706ae50a","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Ruby","wgTitle":"Ruby","wgCurRevisionId":55142791,"wgRevisionId":55142791,"wgArticleId":11561,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Artiklar som behöver förtydligas 2016-05","Artiklar som behöver förtydligas-samtliga","Samtliga artiklar med vem-mallar","Artiklar med vem-mallar 2012-06","Programspråk"],"wgPageViewLanguage":"sv","wgPageContentLanguage":"sv","wgPageContentModel":"wikitext","wgRelevantPageName":"Ruby","wgRelevantArticleId":11561,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia", "wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"sv","pageLanguageDir":"ltr","pageVariantFallbacks":"sv"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":6000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q161053","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.babel":"ready", "ext.gadget.geo":"ready","ext.gadget.warnings":"ready","ext.gadget.tags":"ready","ext.gadget.error":"ready","ext.gadget.referenser":"ready","ext.gadget.printonly":"ready","ext.gadget.tables":"ready","ext.gadget.toccolours":"ready","ext.gadget.smallTagFontSize":"ready","ext.gadget.videoPlayButton":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js", "ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.editsection0","ext.gadget.ProtectionIndicators","ext.gadget.GeoboxLocatorMulti","ext.gadget.InterwikiBadges","ext.gadget.collapsibleTables","ext.gadget.NewSection","ext.gadget.ExkluderaRobotskapadeSidor","ext.gadget.Nearby","ext.gadget.InterProjectLinks","ext.gadget.cgiircbox","ext.gadget.withJS","ext.gadget.CommonsFileLinks","ext.gadget.tableSorterCollation","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=sv&modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=sv&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=sv&modules=ext.gadget.babel%2Cerror%2Cgeo%2Cprintonly%2Creferenser%2CsmallTagFontSize%2Ctables%2Ctags%2Ctoccolours%2CvideoPlayButton%2Cwarnings&only=styles&skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=sv&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/1200px-Ruby-logo-R.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="1479"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/800px-Ruby-logo-R.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="986"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/640px-Ruby-logo-R.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="789"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Ruby – Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//sv.m.wikipedia.org/wiki/Ruby"> <link rel="alternate" type="application/x-wiki" title="Redigera" href="/w/index.php?title=Ruby&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (sv)"> <link rel="EditURI" type="application/rsd+xml" href="//sv.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://sv.wikipedia.org/wiki/Ruby"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.sv"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom-flöde" href="/w/index.php?title=Special:Senaste_%C3%A4ndringar&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Ruby rootpage-Ruby skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Hoppa till innehållet</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Webbplats"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Huvudmeny" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Huvudmeny</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Huvudmeny</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">flytta till sidofältet</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">dölj</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigering </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Portal:Huvudsida" title="Besök huvudsidan [z]" accesskey="z"><span>Huvudsida</span></a></li><li id="n-Introduktion" class="mw-list-item"><a href="/wiki/Wikipedia:Introduktion"><span>Introduktion</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Deltagarportalen" title="Om projektet, vad du kan göra, var man kan hitta saker"><span>Deltagarportalen</span></a></li><li id="n-Bybrunnen" class="mw-list-item"><a href="/wiki/Wikipedia:Bybrunnen"><span>Bybrunnen</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:Senaste_%C3%A4ndringar" title="Lista över de senaste ändringarna på wikin [r]" accesskey="r"><span>Senaste ändringarna</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Slumpsida" title="Gå till en slumpmässigt vald sida [x]" accesskey="x"><span>Slumpartikel</span></a></li><li id="n-filuppladdning" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Ladda upp filer till Wikimedia Commons"><span>Ladda upp filer</span></a></li><li id="n-Kontakta-Wikipedia" class="mw-list-item"><a href="/wiki/Wikipedia:Kontakt"><span>Kontakta Wikipedia</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Wikipedia:Hj%C3%A4lp" title="Platsen där du hittar hjälp"><span>Hjälp</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Portal:Huvudsida" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="" src="/static/images/mobile/copyright/wikipedia-tagline-sv.svg" width="120" height="13" style="width: 7.5em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:S%C3%B6k" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Sök i svenskspråkiga Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Sök</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Sök på Wikipedia" aria-label="Sök på Wikipedia" autocapitalize="sentences" title="Sök i svenskspråkiga Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Sök"> </div> <button class="cdx-button cdx-search-input__end-button">Sök</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personliga verktyg"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Utseende"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Ändra utseendet på sidans teckenstorlek, bredd och färg" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Utseende" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Utseende</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_sv.wikipedia.org&uselang=sv" class=""><span>Stöd Wikipedia</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:Skapa_konto&returnto=Ruby" title="Du uppmuntras att skapa ett konto och logga in, men det är inte obligatoriskt" class=""><span>Skapa konto</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:Inloggning&returnto=Ruby" title="Inloggning ger tillgång till fler funktioner för den som vill skriva och redigera artiklar. [o]" accesskey="o" class=""><span>Logga in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Fler alternativ" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personliga verktyg" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personliga verktyg</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Användarmeny" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_sv.wikipedia.org&uselang=sv"><span>Stöd Wikipedia</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Skapa_konto&returnto=Ruby" title="Du uppmuntras att skapa ett konto och logga in, men det är inte obligatoriskt"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Skapa konto</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Inloggning&returnto=Ruby" title="Inloggning ger tillgång till fler funktioner för den som vill skriva och redigera artiklar. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Logga in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Sidor för utloggade redigerare <a href="/wiki/Hj%C3%A4lp:Introduktion" aria-label="Läs mer om redigering"><span>läs mer</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:Mina_bidrag" title="En lista över redigeringar från denna IP-adress [y]" accesskey="y"><span>Bidrag</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:Min_diskussion" title="Diskussion om redigeringar från det här IP-numret [n]" accesskey="n"><span>Diskussion</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Webbplats"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Innehåll" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Innehåll</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">flytta till sidofältet</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">dölj</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Inledning</div> </a> </li> <li id="toc-Historia" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Historia"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Historia</span> </div> </a> <ul id="toc-Historia-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Egenskaper" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Egenskaper"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Egenskaper</span> </div> </a> <ul id="toc-Egenskaper-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Programexempel" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Programexempel"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Programexempel</span> </div> </a> <ul id="toc-Programexempel-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Litteratur" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Litteratur"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Litteratur</span> </div> </a> <ul id="toc-Litteratur-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Noter" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Noter"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Noter</span> </div> </a> <ul id="toc-Noter-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Externa_länkar" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Externa_länkar"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Externa länkar</span> </div> </a> <button aria-controls="toc-Externa_länkar-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Växla underavsnittet Externa länkar</span> </button> <ul id="toc-Externa_länkar-sublist" class="vector-toc-list"> <li id="toc-Guider" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Guider"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Guider</span> </div> </a> <ul id="toc-Guider-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Innehåll" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Växla innehållsförteckningen" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Växla innehållsförteckningen</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Ruby</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Gå till en artikel på ett annat språk. Tillgänglig på 74 språk" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-74" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">74 språk</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%B1%D9%88%D8%A8%D9%8A_(%D9%84%D8%BA%D8%A9_%D8%A8%D8%B1%D9%85%D8%AC%D8%A9)" title="روبي (لغة برمجة) – arabiska" lang="ar" hreflang="ar" data-title="روبي (لغة برمجة)" data-language-autonym="العربية" data-language-local-name="arabiska" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-an mw-list-item"><a href="https://an.wikipedia.org/wiki/Luengache_de_programaci%C3%B3n_Ruby" title="Luengache de programación Ruby – aragonesiska" lang="an" hreflang="an" data-title="Luengache de programación Ruby" data-language-autonym="Aragonés" data-language-local-name="aragonesiska" class="interlanguage-link-target"><span>Aragonés</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/Ruby" title="Ruby – asturiska" lang="ast" hreflang="ast" data-title="Ruby" data-language-autonym="Asturianu" data-language-local-name="asturiska" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Ruby" title="Ruby – azerbajdzjanska" lang="az" hreflang="az" data-title="Ruby" data-language-autonym="Azərbaycanca" data-language-local-name="azerbajdzjanska" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D8%B1%D9%88%D8%A8%DB%8C" title="روبی – South Azerbaijani" lang="azb" hreflang="azb" data-title="روبی" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%B0%E0%A7%81%E0%A6%AC%E0%A6%BF_(%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82_%E0%A6%AD%E0%A6%BE%E0%A6%B7%E0%A6%BE)" title="রুবি (প্রোগ্রামিং ভাষা) – bengali" lang="bn" hreflang="bn" data-title="রুবি (প্রোগ্রামিং ভাষা)" data-language-autonym="বাংলা" data-language-local-name="bengali" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/Ruby" title="Ruby – belarusiska" lang="be" hreflang="be" data-title="Ruby" data-language-autonym="Беларуская" data-language-local-name="belarusiska" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/Ruby" title="Ruby – bulgariska" lang="bg" hreflang="bg" data-title="Ruby" data-language-autonym="Български" data-language-local-name="bulgariska" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Ruby_(programski_jezik)" title="Ruby (programski jezik) – bosniska" lang="bs" hreflang="bs" data-title="Ruby (programski jezik)" data-language-autonym="Bosanski" data-language-local-name="bosniska" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Ruby" title="Ruby – katalanska" lang="ca" hreflang="ca" data-title="Ruby" data-language-autonym="Català" data-language-local-name="katalanska" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Ruby" title="Ruby – tjeckiska" lang="cs" hreflang="cs" data-title="Ruby" data-language-autonym="Čeština" data-language-local-name="tjeckiska" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Ruby_(programmeringssprog)" title="Ruby (programmeringssprog) – danska" lang="da" hreflang="da" data-title="Ruby (programmeringssprog)" data-language-autonym="Dansk" data-language-local-name="danska" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Ruby_(Programmiersprache)" title="Ruby (Programmiersprache) – tyska" lang="de" hreflang="de" data-title="Ruby (Programmiersprache)" data-language-autonym="Deutsch" data-language-local-name="tyska" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Ruby_(programmeerimiskeel)" title="Ruby (programmeerimiskeel) – estniska" lang="et" hreflang="et" data-title="Ruby (programmeerimiskeel)" data-language-autonym="Eesti" data-language-local-name="estniska" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Ruby" title="Ruby – grekiska" lang="el" hreflang="el" data-title="Ruby" data-language-autonym="Ελληνικά" data-language-local-name="grekiska" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Ruby_(programming_language)" title="Ruby (programming language) – engelska" lang="en" hreflang="en" data-title="Ruby (programming language)" data-language-autonym="English" data-language-local-name="engelska" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Ruby" title="Ruby – spanska" lang="es" hreflang="es" data-title="Ruby" data-language-autonym="Español" data-language-local-name="spanska" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Ruby_(programlingvo)" title="Ruby (programlingvo) – esperanto" lang="eo" hreflang="eo" data-title="Ruby (programlingvo)" data-language-autonym="Esperanto" data-language-local-name="esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Ruby" title="Ruby – baskiska" lang="eu" hreflang="eu" data-title="Ruby" data-language-autonym="Euskara" data-language-local-name="baskiska" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B1%D9%88%D8%A8%DB%8C_(%D8%B2%D8%A8%D8%A7%D9%86_%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87%E2%80%8C%D9%86%D9%88%DB%8C%D8%B3%DB%8C)" title="روبی (زبان برنامهنویسی) – persiska" lang="fa" hreflang="fa" data-title="روبی (زبان برنامهنویسی)" data-language-autonym="فارسی" data-language-local-name="persiska" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Ruby" title="Ruby – franska" lang="fr" hreflang="fr" data-title="Ruby" data-language-autonym="Français" data-language-local-name="franska" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Ruby" title="Ruby – galiciska" lang="gl" hreflang="gl" data-title="Ruby" data-language-autonym="Galego" data-language-local-name="galiciska" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%A3%A8%EB%B9%84_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)" title="루비 (프로그래밍 언어) – koreanska" lang="ko" hreflang="ko" data-title="루비 (프로그래밍 언어)" data-language-autonym="한국어" data-language-local-name="koreanska" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/Ruby_(programming_language)" title="Ruby (programming language) – hausa" lang="ha" hreflang="ha" data-title="Ruby (programming language)" data-language-autonym="Hausa" data-language-local-name="hausa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/Ruby_(%D5%AE%D6%80%D5%A1%D5%A3%D6%80%D5%A1%D5%BE%D5%B8%D6%80%D5%B4%D5%A1%D5%B6_%D5%AC%D5%A5%D5%A6%D5%B8%D6%82)" title="Ruby (ծրագրավորման լեզու) – armeniska" lang="hy" hreflang="hy" data-title="Ruby (ծրագրավորման լեզու)" data-language-autonym="Հայերեն" data-language-local-name="armeniska" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/Ruby_(programski_jezik)" title="Ruby (programski jezik) – kroatiska" lang="hr" hreflang="hr" data-title="Ruby (programski jezik)" data-language-autonym="Hrvatski" data-language-local-name="kroatiska" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-io mw-list-item"><a href="https://io.wikipedia.org/wiki/Ruby_(programifo-linguo)" title="Ruby (programifo-linguo) – ido" lang="io" hreflang="io" data-title="Ruby (programifo-linguo)" data-language-autonym="Ido" data-language-local-name="ido" class="interlanguage-link-target"><span>Ido</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Ruby_(bahasa_pemrograman)" title="Ruby (bahasa pemrograman) – indonesiska" lang="id" hreflang="id" data-title="Ruby (bahasa pemrograman)" data-language-autonym="Bahasa Indonesia" data-language-local-name="indonesiska" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ia mw-list-item"><a href="https://ia.wikipedia.org/wiki/Ruby_(linguage_de_programmation)" title="Ruby (linguage de programmation) – interlingua" lang="ia" hreflang="ia" data-title="Ruby (linguage de programmation)" data-language-autonym="Interlingua" data-language-local-name="interlingua" class="interlanguage-link-target"><span>Interlingua</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Ruby_(linguaggio_di_programmazione)" title="Ruby (linguaggio di programmazione) – italienska" lang="it" hreflang="it" data-title="Ruby (linguaggio di programmazione)" data-language-autonym="Italiano" data-language-local-name="italienska" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/Ruby" title="Ruby – hebreiska" lang="he" hreflang="he" data-title="Ruby" data-language-autonym="עברית" data-language-local-name="hebreiska" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/%E1%83%A0%E1%83%A3%E1%83%91%E1%83%98" title="რუბი – georgiska" lang="ka" hreflang="ka" data-title="რუბი" data-language-autonym="ქართული" data-language-local-name="georgiska" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-sw mw-list-item"><a href="https://sw.wikipedia.org/wiki/Ruby" title="Ruby – swahili" lang="sw" hreflang="sw" data-title="Ruby" data-language-autonym="Kiswahili" data-language-local-name="swahili" class="interlanguage-link-target"><span>Kiswahili</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/Ruby" title="Ruby – kirgiziska" lang="ky" hreflang="ky" data-title="Ruby" data-language-autonym="Кыргызча" data-language-local-name="kirgiziska" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Ruby" title="Ruby – lettiska" lang="lv" hreflang="lv" data-title="Ruby" data-language-autonym="Latviešu" data-language-local-name="lettiska" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/Ruby" title="Ruby – litauiska" lang="lt" hreflang="lt" data-title="Ruby" data-language-autonym="Lietuvių" data-language-local-name="litauiska" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-lmo mw-list-item"><a href="https://lmo.wikipedia.org/wiki/Ruby" title="Ruby – lombardiska" lang="lmo" hreflang="lmo" data-title="Ruby" data-language-autonym="Lombard" data-language-local-name="lombardiska" class="interlanguage-link-target"><span>Lombard</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Ruby_(programoz%C3%A1si_nyelv)" title="Ruby (programozási nyelv) – ungerska" lang="hu" hreflang="hu" data-title="Ruby (programozási nyelv)" data-language-autonym="Magyar" data-language-local-name="ungerska" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%B1%E0%B5%82%E0%B4%AC%E0%B4%BF_(%E0%B4%AA%E0%B5%8D%E0%B4%B0%E0%B5%8B%E0%B4%97%E0%B5%8D%E0%B4%B0%E0%B4%BE%E0%B4%AE%E0%B4%BF%E0%B4%99%E0%B5%8D_%E0%B4%AD%E0%B4%BE%E0%B4%B7)" title="റൂബി (പ്രോഗ്രാമിങ് ഭാഷ) – malayalam" lang="ml" hreflang="ml" data-title="റൂബി (പ്രോഗ്രാമിങ് ഭാഷ)" data-language-autonym="മലയാളം" data-language-local-name="malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B0%E0%A5%81%E0%A4%AC%E0%A5%80" title="रुबी – marathi" lang="mr" hreflang="mr" data-title="रुबी" data-language-autonym="मराठी" data-language-local-name="marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Ruby" title="Ruby – malajiska" lang="ms" hreflang="ms" data-title="Ruby" data-language-autonym="Bahasa Melayu" data-language-local-name="malajiska" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/Ruby_(programming_language)" title="Ruby (programming language) – burmesiska" lang="my" hreflang="my" data-title="Ruby (programming language)" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="burmesiska" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Ruby_(programmeertaal)" title="Ruby (programmeertaal) – nederländska" lang="nl" hreflang="nl" data-title="Ruby (programmeertaal)" data-language-autonym="Nederlands" data-language-local-name="nederländska" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Ruby" title="Ruby – japanska" lang="ja" hreflang="ja" data-title="Ruby" data-language-autonym="日本語" data-language-local-name="japanska" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Ruby" title="Ruby – norskt bokmål" lang="nb" hreflang="nb" data-title="Ruby" data-language-autonym="Norsk bokmål" data-language-local-name="norskt bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Ruby" title="Ruby – nynorska" lang="nn" hreflang="nn" data-title="Ruby" data-language-autonym="Norsk nynorsk" data-language-local-name="nynorska" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%B0%E0%AD%81%E0%AC%AC%E0%AD%80_(%E0%AC%AA%E0%AD%8D%E0%AC%B0%E0%AD%8B%E0%AC%97%E0%AD%8D%E0%AC%B0%E0%AC%BE%E0%AC%AE%E0%AC%BF%E0%AC%82_%E0%AC%AD%E0%AC%BE%E0%AC%B7%E0%AC%BE)" title="ରୁବୀ (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା) – oriya" lang="or" hreflang="or" data-title="ରୁବୀ (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା)" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="oriya" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-uz mw-list-item"><a href="https://uz.wikipedia.org/wiki/Ruby" title="Ruby – uzbekiska" lang="uz" hreflang="uz" data-title="Ruby" data-language-autonym="Oʻzbekcha / ўзбекча" data-language-local-name="uzbekiska" class="interlanguage-link-target"><span>Oʻzbekcha / ўзбекча</span></a></li><li class="interlanguage-link interwiki-pa mw-list-item"><a href="https://pa.wikipedia.org/wiki/%E0%A8%B0%E0%A9%82%E0%A8%AC%E0%A9%80_(%E0%A8%AA%E0%A9%8D%E0%A8%B0%E0%A9%8B%E0%A8%97%E0%A8%B0%E0%A8%BE%E0%A8%AE%E0%A8%BF%E0%A9%B0%E0%A8%97_%E0%A8%AD%E0%A8%BE%E0%A8%B8%E0%A8%BC%E0%A8%BE)" title="ਰੂਬੀ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ) – punjabi" lang="pa" hreflang="pa" data-title="ਰੂਬੀ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ)" data-language-autonym="ਪੰਜਾਬੀ" data-language-local-name="punjabi" class="interlanguage-link-target"><span>ਪੰਜਾਬੀ</span></a></li><li class="interlanguage-link interwiki-pnb mw-list-item"><a href="https://pnb.wikipedia.org/wiki/%D8%B1%D9%88%D8%A8%DB%8C_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="روبی (پروگرامنگ زبان) – Western Punjabi" lang="pnb" hreflang="pnb" data-title="روبی (پروگرامنگ زبان)" data-language-autonym="پنجابی" data-language-local-name="Western Punjabi" class="interlanguage-link-target"><span>پنجابی</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Ruby_(j%C4%99zyk_programowania)" title="Ruby (język programowania) – polska" lang="pl" hreflang="pl" data-title="Ruby (język programowania)" data-language-autonym="Polski" data-language-local-name="polska" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Ruby_(linguagem_de_programa%C3%A7%C3%A3o)" title="Ruby (linguagem de programação) – portugisiska" lang="pt" hreflang="pt" data-title="Ruby (linguagem de programação)" data-language-autonym="Português" data-language-local-name="portugisiska" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Ruby" title="Ruby – rumänska" lang="ro" hreflang="ro" data-title="Ruby" data-language-autonym="Română" data-language-local-name="rumänska" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/Ruby" title="Ruby – ryska" lang="ru" hreflang="ru" data-title="Ruby" data-language-autonym="Русский" data-language-local-name="ryska" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Ruby_(gjuh%C3%AB_programuese)" title="Ruby (gjuhë programuese) – albanska" lang="sq" hreflang="sq" data-title="Ruby (gjuhë programuese)" data-language-autonym="Shqip" data-language-local-name="albanska" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Ruby_(programming_language)" title="Ruby (programming language) – Simple English" lang="en-simple" hreflang="en-simple" data-title="Ruby (programming language)" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Ruby_(programovac%C3%AD_jazyk)" title="Ruby (programovací jazyk) – slovakiska" lang="sk" hreflang="sk" data-title="Ruby (programovací jazyk)" data-language-autonym="Slovenčina" data-language-local-name="slovakiska" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%DA%95%D9%88%D9%88%D8%A8%DB%8C" title="ڕووبی – centralkurdiska" lang="ckb" hreflang="ckb" data-title="ڕووبی" data-language-autonym="کوردی" data-language-local-name="centralkurdiska" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/Ruby_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D1%81%D0%BA%D0%B8_%D1%98%D0%B5%D0%B7%D0%B8%D0%BA)" title="Ruby (програмски језик) – serbiska" lang="sr" hreflang="sr" data-title="Ruby (програмски језик)" data-language-autonym="Српски / srpski" data-language-local-name="serbiska" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Rubi_(programski_jezik)" title="Rubi (programski jezik) – serbokroatiska" lang="sh" hreflang="sh" data-title="Rubi (programski jezik)" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="serbokroatiska" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Ruby" title="Ruby – finska" lang="fi" hreflang="fi" data-title="Ruby" data-language-autonym="Suomi" data-language-local-name="finska" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%B0%E0%AF%82%E0%AE%AA%E0%AE%BF_(%E0%AE%A8%E0%AE%BF%E0%AE%B0%E0%AE%B2%E0%AE%BE%E0%AE%95%E0%AF%8D%E0%AE%95_%E0%AE%AE%E0%AF%8A%E0%AE%B4%E0%AE%BF)" title="ரூபி (நிரலாக்க மொழி) – tamil" lang="ta" hreflang="ta" data-title="ரூபி (நிரலாக்க மொழி)" data-language-autonym="தமிழ்" data-language-local-name="tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-tt mw-list-item"><a href="https://tt.wikipedia.org/wiki/Ruby_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0_%D1%82%D3%99%D1%8D%D0%BC%D0%B8%D0%BD%D0%B0%D1%82%D1%8B%D0%BD_%D1%82%D0%B0%D1%81%D0%B2%D0%B8%D1%80%D0%BB%D0%B0%D1%83_%D1%82%D0%B5%D0%BB%D0%B5)" title="Ruby (программа тәэминатын тасвирлау теле) – tatariska" lang="tt" hreflang="tt" data-title="Ruby (программа тәэминатын тасвирлау теле)" data-language-autonym="Татарча / tatarça" data-language-local-name="tatariska" class="interlanguage-link-target"><span>Татарча / tatarça</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%B0%E0%B1%82%E0%B0%AC%E0%B0%BF_(%E0%B0%95%E0%B0%82%E0%B0%AA%E0%B1%8D%E0%B0%AF%E0%B1%82%E0%B0%9F%E0%B0%B0%E0%B1%8D_%E0%B0%AD%E0%B0%BE%E0%B0%B7)" title="రూబి (కంప్యూటర్ భాష) – telugu" lang="te" hreflang="te" data-title="రూబి (కంప్యూటర్ భాష)" data-language-autonym="తెలుగు" data-language-local-name="telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%A3%E0%B8%B9%E0%B8%9A%E0%B8%B5" title="ภาษารูบี – thailändska" lang="th" hreflang="th" data-title="ภาษารูบี" data-language-autonym="ไทย" data-language-local-name="thailändska" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/Ruby" title="Ruby – tadzjikiska" lang="tg" hreflang="tg" data-title="Ruby" data-language-autonym="Тоҷикӣ" data-language-local-name="tadzjikiska" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Ruby" title="Ruby – turkiska" lang="tr" hreflang="tr" data-title="Ruby" data-language-autonym="Türkçe" data-language-local-name="turkiska" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/Ruby" title="Ruby – ukrainska" lang="uk" hreflang="uk" data-title="Ruby" data-language-autonym="Українська" data-language-local-name="ukrainska" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D8%B1%D9%88%D8%A8%DB%8C_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="روبی (پروگرامنگ زبان) – urdu" lang="ur" hreflang="ur" data-title="روبی (پروگرامنگ زبان)" data-language-autonym="اردو" data-language-local-name="urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Ruby_(ng%C3%B4n_ng%E1%BB%AF_l%E1%BA%ADp_tr%C3%ACnh)" title="Ruby (ngôn ngữ lập trình) – vietnamesiska" lang="vi" hreflang="vi" data-title="Ruby (ngôn ngữ lập trình)" data-language-autonym="Tiếng Việt" data-language-local-name="vietnamesiska" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/Ruby" title="Ruby – wu" lang="wuu" hreflang="wuu" data-title="Ruby" data-language-autonym="吴语" data-language-local-name="wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Ruby_%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80" title="Ruby 程式語言 – kantonesiska" lang="yue" hreflang="yue" data-title="Ruby 程式語言" data-language-autonym="粵語" data-language-local-name="kantonesiska" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-bat-smg mw-list-item"><a href="https://bat-smg.wikipedia.org/wiki/Ruby" title="Ruby – samogitiska" lang="sgs" hreflang="sgs" data-title="Ruby" data-language-autonym="Žemaitėška" data-language-local-name="samogitiska" class="interlanguage-link-target"><span>Žemaitėška</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Ruby" title="Ruby – kinesiska" lang="zh" hreflang="zh" data-title="Ruby" data-language-autonym="中文" data-language-local-name="kinesiska" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q161053#sitelinks-wikipedia" title="Redigera interwikilänkar" class="wbc-editpage">Redigera länkar</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namnrymder"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Ruby" title="Visa innehållssidan [c]" accesskey="c"><span>Artikel</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Diskussion:Ruby" rel="discussion" title="Diskussion om innehållssidan [t]" accesskey="t"><span>Diskussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Ändra språkvariant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">svenska</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Visningar"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Ruby"><span>Läs</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Ruby&veaction=edit" title="Redigera denna sida [v]" accesskey="v"><span>Redigera</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Ruby&action=edit" title="Redigera wikitexten för den här sidan [e]" accesskey="e"><span>Redigera wikitext</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Ruby&action=history" title="Tidigare versioner av sidan [h]" accesskey="h"><span>Visa historik</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Sidverktyg"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Verktyg" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Verktyg</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Verktyg</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">flytta till sidofältet</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">dölj</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Fler alternativ" > <div class="vector-menu-heading"> Åtgärder </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Ruby"><span>Läs</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Ruby&veaction=edit" title="Redigera denna sida [v]" accesskey="v"><span>Redigera</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Ruby&action=edit" title="Redigera wikitexten för den här sidan [e]" accesskey="e"><span>Redigera wikitext</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Ruby&action=history"><span>Visa historik</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Allmänt </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:L%C3%A4nkar_hit/Ruby" title="Lista över alla wikisidor som länkar hit [j]" accesskey="j"><span>Sidor som länkar hit</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:Senaste_relaterade_%C3%A4ndringar/Ruby" rel="nofollow" title="Visa senaste ändringarna av sidor som den här sidan länkar till [k]" accesskey="k"><span>Relaterade ändringar</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:Specialsidor" title="Lista över alla specialsidor [q]" accesskey="q"><span>Specialsidor</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Ruby&oldid=55142791" title="Permanent länk till den här versionen av sidan"><span>Permanent länk</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Ruby&action=info" title="Mer information om denna sida"><span>Sidinformation</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:Citera&page=Ruby&id=55142791&wpFormIdentifier=titleform" title="Information om hur den här artikeln kan användas som referens"><span>Använd som referens</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fsv.wikipedia.org%2Fwiki%2FRuby"><span>Hämta förkortad url</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fsv.wikipedia.org%2Fwiki%2FRuby"><span>Ladda ner QR-kod</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Skriv ut/exportera </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Bok&bookcmd=book_creator&referer=Ruby"><span>Skapa en bok</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Ruby&action=show-download-screen"><span>Ladda ned som PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Ruby&printable=yes" title="Utskriftsvänlig version av den här sidan [p]" accesskey="p"><span>Utskriftsvänlig version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> På andra projekt </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Ruby_programming_language" hreflang="en"><span>Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q161053" title="Länk till anslutet databasobjekt [g]" accesskey="g"><span>Wikidata-objekt</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Sidverktyg"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Utseende"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Utseende</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">flytta till sidofältet</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">dölj</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">Från Wikipedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="sv" dir="ltr"><dl class="noexcerpt dablink"><dd><i>För andra betydelser, se <a href="/wiki/Ruby_(olika_betydelser)" class="mw-disambig" title="Ruby (olika betydelser)">Ruby (olika betydelser)</a>.</i></dd></dl> <style data-mw-deduplicate="TemplateStyles:r53696904">.mw-parser-output .infobox{border:1px solid #aaa;background-color:#f9f9f9;color:black;margin:.5em 0 .5em 1em;padding:.2em;float:right;clear:right;width:22em;text-align:left;font-size:88%;line-height:1.6em}.mw-parser-output .infobox td,.mw-parser-output .infobox th{vertical-align:top;padding:0 .2em}.mw-parser-output .infobox caption{font-size:larger}.mw-parser-output .infobox.bordered{border-collapse:collapse}.mw-parser-output .infobox.bordered td,.mw-parser-output .infobox.bordered th{border:1px solid #aaa}.mw-parser-output .infobox.bordered .borderless td,.mw-parser-output .infobox.bordered .borderless th{border:0}.mw-parser-output .infobox-showbutton button,.mw-parser-output .infobox-showbutton .mw-collapsible-text{color:inherit}.mw-parser-output .infobox.bordered .mergedtoprow td,.mw-parser-output .infobox.bordered .mergedtoprow th{border:0;border-top:1px solid #aaa;border-right:1px solid #aaa}.mw-parser-output .infobox.bordered .mergedrow td,.mw-parser-output .infobox.bordered .mergedrow th{border:0;border-right:1px solid #aaa}.mw-parser-output .infobox.geography{border:1px solid #ccd2d9;text-align:left;border-collapse:collapse;line-height:1.2em;font-size:90%}.mw-parser-output .infobox.geography td,.mw-parser-output .infobox.geography th{border-top:solid 1px #ccd2d9;padding:0.4em 0.6em 0.4em 0.6em}.mw-parser-output .infobox.geography .mergedtoprow td,.mw-parser-output .infobox.geography .mergedtoprow th{border-top:solid 1px #ccd2d9;padding:0.4em 0.6em 0.2em 0.6em}.mw-parser-output .infobox.geography .mergedrow td,.mw-parser-output .infobox.geography .mergedrow th{border:0;padding:0 0.6em 0.2em 0.6em}.mw-parser-output .infobox.geography .mergedbottomrow td,.mw-parser-output .infobox.geography .mergedbottomrow th{border-top:0;border-bottom:solid 1px #ccd2d9;padding:0 0.6em 0.4em 0.6em}.mw-parser-output .infobox.geography .maptable td,.mw-parser-output .infobox.geography .maptable th{border:0;padding:0}</style><table class="infobox" style="border-spacing:3px;"><tbody><tr><td colspan="2" class="" style="padding:2px; text-align:center; font-size: 125%; font-weight: bold;">Ruby</td></tr><tr><td colspan="2" class="" style="text-align:center;"> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fil:Ruby-logo-R.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/198px-Ruby-logo-R.svg.png" decoding="async" width="198" height="244" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/297px-Ruby-logo-R.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Ruby-logo-R.svg/396px-Ruby-logo-R.svg.png 2x" data-file-width="198" data-file-height="244" /></a></span> </td></tr><tr><th style="text-align:left;"><a href="/wiki/Programmeringsparadigm" title="Programmeringsparadigm">Paradigm</a></th><td class="" style=""><a href="/wiki/Programmeringsparadigm" title="Programmeringsparadigm">multi-paradigm</a>: <a href="/wiki/Objektorienterad_programmering" title="Objektorienterad programmering">objektorienterad</a>, <a href="/wiki/Imperativ_programmering" title="Imperativ programmering">imperativ</a>, <a href="/wiki/Funktionell_programmering" title="Funktionell programmering">funktionell</a>, <a href="/w/index.php?title=Reflektiv_programmering&action=edit&redlink=1" class="new" title="Reflektiv programmering [inte skriven än]">reflektiv</a></td></tr><tr><th style="text-align:left;">Gavs ut</th><td class="" style="">1995</td></tr><tr><th style="text-align:left;">Skapat av</th><td class="" style=""><a href="/wiki/Yukihiro_Matsumoto" title="Yukihiro Matsumoto">Yukihiro Matsumoto</a></td></tr><tr><th style="text-align:left;"><a href="/wiki/Programutvecklare" class="mw-redirect" title="Programutvecklare">Utvecklare</a></th><td class="" style=""><a href="/wiki/Yukihiro_Matsumoto" title="Yukihiro Matsumoto">Yukihiro Matsumoto</a> m.fl.</td></tr><tr><th style="text-align:left;">Senaste version</th><td class="" style="">3.3.0 (2023-12-25)</td></tr><tr><th style="text-align:left;"><a href="/wiki/Typsystem" title="Typsystem">Datatypsdisciplin</a></th><td class="" style="">duck, dynamic</td></tr><tr><th style="text-align:left;"><a href="/wiki/Implementation_(programmering)" title="Implementation (programmering)">Implementationer</a></th><td class="" style=""><a href="/w/index.php?title=Ruby_MRI&action=edit&redlink=1" class="new" title="Ruby MRI [inte skriven än]">Ruby MRI</a>, <a href="/wiki/YARV" title="YARV">YARV</a>, <a href="/w/index.php?title=JRuby&action=edit&redlink=1" class="new" title="JRuby [inte skriven än]">JRuby</a>, <a href="/w/index.php?title=Rubinius&action=edit&redlink=1" class="new" title="Rubinius [inte skriven än]">Rubinius</a>, <a href="/w/index.php?title=IronRuby&action=edit&redlink=1" class="new" title="IronRuby [inte skriven än]">IronRuby</a>, <a href="/w/index.php?title=MacRuby&action=edit&redlink=1" class="new" title="MacRuby [inte skriven än]">MacRuby</a>, <a href="/w/index.php?title=HotRuby&action=edit&redlink=1" class="new" title="HotRuby [inte skriven än]">HotRuby</a></td></tr><tr><th style="text-align:left;">Influerat av</th><td class="" style=""><a href="/wiki/Ada_(programspr%C3%A5k)" title="Ada (programspråk)">Ada</a>, <a href="/wiki/C%2B%2B" title="C++">C++</a>, <a href="/w/index.php?title=CLU&action=edit&redlink=1" class="new" title="CLU [inte skriven än]">CLU</a>, Dylan, <a href="/w/index.php?title=Eiffel_(programspr%C3%A5k)&action=edit&redlink=1" class="new" title="Eiffel (programspråk) [inte skriven än]">Eiffel</a>, <a href="/wiki/Lisp" title="Lisp">Lisp</a>, <a href="/wiki/Perl" title="Perl">Perl</a>, <a href="/wiki/Python_(programspr%C3%A5k)" title="Python (programspråk)">Python</a>, <a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a></td></tr><tr><th style="text-align:left;">Influerat</th><td class="" style=""><a href="/wiki/Perl_6" class="mw-redirect" title="Perl 6">Perl 6</a>, Falcon, Fancy, <a href="/wiki/Groovy_(programspr%C3%A5k)" title="Groovy (programspråk)">Groovy (programspråk)</a>, Ioke, Mirah, Nu, Reia</td></tr><tr><th style="text-align:left;"><a href="/wiki/Operativsystem" title="Operativsystem">Plattform</a></th><td class="" style=""><a href="/wiki/Unix" title="Unix">Unix</a>, <a href="/wiki/Linux" title="Linux">Linux</a>, <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, m.m.</td></tr><tr><th style="text-align:left;"><a href="/wiki/Programvarulicens" title="Programvarulicens">Licens</a></th><td class="" style=""><a href="/wiki/GNU_General_Public_License" title="GNU General Public License">GPL</a> och <a href="/w/index.php?title=Ruby_License&action=edit&redlink=1" class="new" title="Ruby License [inte skriven än]">Ruby License</a></td></tr><tr><th style="text-align:left;"><a href="/wiki/Webbplats" title="Webbplats">Webbplats</a></th><td class="" style=""><a rel="nofollow" class="external text" href="http://www.ruby-lang.org/">ruby-lang.org</a></td></tr></tbody></table> <p><b>Ruby</b> är ett <a href="/wiki/Fri_mjukvara" class="mw-redirect" title="Fri mjukvara">fritt generellt</a> <a href="/wiki/Programspr%C3%A5k" title="Programspråk">programspråk</a> utvecklat i <a href="/wiki/Japan" title="Japan">Japan</a> av <a href="/wiki/Yukihiro_Matsumoto" title="Yukihiro Matsumoto">Yukihiro "Matz" Matsumoto</a> i mitten av 1990-talet. Det är ett <a href="/wiki/Interpreterande_programspr%C3%A5k" title="Interpreterande programspråk">interpreterande språk</a>, vilket innebär att koden tolkas direkt vid exekveringen och inte <a href="/wiki/Kompilering" class="mw-redirect" title="Kompilering">kompileras</a>. Ruby är ett rent <a href="/wiki/Objektorientering" class="mw-redirect" title="Objektorientering">objektorienterat</a> programspråk, skapat för att vara så intuitivt som möjligt enligt "principle of least surprise" (ungefärligt översatt <i>principen om minsta möjliga överraskning</i>). </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Historia">Historia</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=1" title="Redigera avsnitt: Historia" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=1" title="Redigera avsnitts källkod: Historia"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Matsumoto började utveckla Ruby i början av <a href="/wiki/1993" title="1993">1993</a> och publicerade det offentligt <a href="/wiki/1995" title="1995">1995</a>. Han försökte utveckla ett nytt språk som var menat att vara enkelt att förstå för både vana och ovana programmerare. Han skrev en gång att "Ruby ser enkelt ut, men är väldigt komplext på insidan, precis som en människokropp." <sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-reference-link-bracket">[</span>1<span class="cite-reference-link-bracket">]</span></a></sup> Idag är Ruby bland de tio mest populära programspråken i världen, enligt <a href="/w/index.php?title=TIOBE_Software&action=edit&redlink=1" class="new" title="TIOBE Software [inte skriven än]">TIOBE Software</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Egenskaper">Egenskaper</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=2" title="Redigera avsnitt: Egenskaper" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=2" title="Redigera avsnitts källkod: Egenskaper"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Ruby har varit välkänt som programspråk i Japan i flera år, vilket har lett till att de flesta delarna av språket är skrivna av japaner. Först på senare tid har engelskspråkig dokumentation tagits fram, vilket medfört att även resten av världen har kunnat ta del av språket. </p><p>Ruby kan användas på de flesta plattformar, såsom <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Windows</a>, <a href="/wiki/Unix" title="Unix">Unix</a> och <a href="/wiki/GNU/Linux" class="mw-redirect" title="GNU/Linux">GNU/Linux</a>. Det finns förinstallerat i en del versioner av <a href="/wiki/Mac_OS" title="Mac OS">Mac OS</a>, följer med <a href="/wiki/Cygwin" title="Cygwin">Cygwin</a> och används även av <a href="/wiki/Watir" title="Watir">Watir</a>. </p><p>Ruby är skalbart och kan användas till både korta skript samt utveckling av större applikationer. Språket lämpar sig även för systemadministration tack vare möjligheter till <a href="/wiki/API" class="mw-redirect" title="API">API</a>-anrop på låg nivå, men passar lika bra för exempelvis webbapplikationer via inbäddning och <a href="/wiki/Common_Gateway_Interface" title="Common Gateway Interface">CGI</a>. Det räknas genom sina egenskaper till de <a href="/wiki/Agila_programmeringsspr%C3%A5k" class="mw-redirect" title="Agila programmeringsspråk">agila programspråken</a>. </p><p>Ruby konkurrerar med framför allt <a href="/wiki/Perl" title="Perl">Perl</a> och <a href="/wiki/Python_(programspr%C3%A5k)" title="Python (programspråk)">Python</a>; språk som Matsumoto tog inspiration från när han sökte efter en optimal <a href="/wiki/Syntax" title="Syntax">syntax</a> för Ruby. På senare tid har Ruby uppmärksammats genom <a href="/wiki/Model-view-controller" class="mw-redirect" title="Model-view-controller">MVC</a>-webbramverket <a href="/wiki/Ruby_on_Rails" title="Ruby on Rails">Ruby on Rails</a>. De mer etablerade webbapplikationsspråken <a href="/wiki/PHP" title="PHP">PHP</a> och <a href="/wiki/ASP" class="mw-redirect mw-disambig" title="ASP">ASP</a><sup class="noprint Inline-Template"><a href="/wiki/Wikipedia:Inledning_och_sammanhang#Förklara_sammanhanget" title="Wikipedia:Inledning och sammanhang">[<span title="Active Server Pages eller ASP.NET? (2016-05)"><i>förtydliga</i></span>]</a></sup> har på så sätt fått en ny konkurrent. Utvecklargruppen kring Python har även tagit fram ramverken <a href="/wiki/Django_(webbramverk)" title="Django (webbramverk)">Django</a> och <a href="/w/index.php?title=Turbogears&action=edit&redlink=1" class="new" title="Turbogears [inte skriven än]">Turbogears</a>, som båda bygger på samma principer som Ruby on Rails. Ruby on Rails hanterar kopplingen till databaser på ett ovanligt smidigt och enkelt sätt<sup class="noprint Inline-Template"><a href="/wiki/Wikipedia:Undvik_f%C3%B6rs%C3%A5tliga_referenser" title="Wikipedia:Undvik försåtliga referenser">[<span title="enligt vem (2012-06)"><i>enligt vem?</i></span>]</a></sup>. </p> <div class="mw-heading mw-heading2"><h2 id="Programexempel">Programexempel</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=3" title="Redigera avsnitt: Programexempel" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=3" title="Redigera avsnitts källkod: Programexempel"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Ruby är objektorienterat och saknar primitiva datatyper. Till och med heltal är objekt. Kodexemplet nedan visar två olika sätt på vilka man kan skriva ut texten "Hej världen" tio gånger i följd. </p> <div class="mw-highlight mw-highlight-lang-ruby mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="mi">10</span><span class="o">.</span><span class="n">times</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">puts</span><span class="w"> </span><span class="s1">'Hej världen'</span><span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="nb">puts</span><span class="w"> </span><span class="s1">'Hej världen'</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">10</span> </pre></div> <p>Ruby har inbyggt stöd för <a href="/wiki/Bignum-aritmetik" title="Bignum-aritmetik">bignum-aritmetik</a>, vilket gör att storleken på heltal endast är begränsat av mängden tillgängligt minne. Kodexemplet nedan skriver ut texten "Hej världen" 238472058502835 gånger. </p> <div class="mw-highlight mw-highlight-lang-ruby mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="mi">238472058502835</span><span class="o">.</span><span class="n">times</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">print</span><span class="w"> </span><span class="s2">"Hej världen."</span><span class="w"> </span><span class="p">}</span> </pre></div> <p>Kodexemplet nedan söker igenom textfilen "hej.txt" efter raden där det står "john doe" och skriver ut den. </p> <div class="mw-highlight mw-highlight-lang-ruby mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="no">File</span><span class="o">.</span><span class="n">open</span><span class="p">(</span><span class="s2">"hej.txt"</span><span class="p">,</span><span class="s2">"r"</span><span class="p">)</span><span class="o">.</span><span class="n">each</span><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="o">|</span><span class="n">line</span><span class="o">|</span> <span class="w"> </span><span class="nb">puts</span><span class="w"> </span><span class="n">line</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">line</span><span class="o">.</span><span class="n">chomp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="s2">"john doe"</span><span class="p">)</span> <span class="w"> </span><span class="k">end</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Litteratur">Litteratur</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=4" title="Redigera avsnitt: Litteratur" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=4" title="Redigera avsnitts källkod: Litteratur"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Matsumoto (2007), <i>Ruby in a Nutshell, 2nd ed.</i>, O'Reilly.</li> <li>Carlson & Richardson (2006), <i>The Ruby Cook Book</i>, O'Reilly.</li> <li>Fulton (2006), <i>The Ruby Way (2nd ed)</i>, SAMS.</li> <li>Thomas, Hansson (2005), <i>Agile Web Development with Rails</i>, The Pragmatic Programmers</li> <li>Thomas, Fowler & Hunt (2004), <i>Programming Ruby (2nd ed)</i>, Addison-Wesley.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Noter">Noter</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=5" title="Redigera avsnitt: Noter" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=5" title="Redigera avsnitts källkod: Noter"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-1"><a href="#cite_ref-1">^</a> <span class="reference-text"><cite style="font-style:normal" class="web"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20070517042345/http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2773">”Arkiverade kopian”</a>. Arkiverad från <a rel="nofollow" class="external text" href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2773">originalet</a> den 17 maj 2007<span class="printonly">. <a rel="nofollow" class="external free" href="https://web.archive.org/web/20070517042345/http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2773">https://web.archive.org/web/20070517042345/http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2773</a></span><span class="reference-accessdate">. Läst 31 maj 2007</span>.</cite><span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=bookitem&rft.btitle=Arkiverade+kopian&rft.atitle=&rft_id=https%3A%2F%2Fweb.archive.org%2Fweb%2F20070517042345%2Fhttp%3A%2F%2Fblade.nagaokaut.ac.jp%2Fcgi-bin%2Fscat.rb%2Fruby%2Fruby-talk%2F2773&rfr_id=info:sid/en.wikipedia.org:Ruby"><span style="display: none;"> </span></span></span> </li> </ol></div> <div class="mw-heading mw-heading2"><h2 id="Externa_länkar"><span id="Externa_l.C3.A4nkar"></span>Externa länkar</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=6" title="Redigera avsnitt: Externa länkar" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=6" title="Redigera avsnitts källkod: Externa länkar"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><span typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png" decoding="async" width="15" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/23px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376" /></span></span> Wikimedia Commons har media som rör <a href="https://commons.wikimedia.org/wiki/Category:Ruby_programming_language" class="extiw" title="commons:Category:Ruby programming language">Ruby</a>.<div class="interProject commons" style="display:none;"><a href="https://commons.wikimedia.org/wiki/Category:Ruby_programming_language" class="extiw" title="commons:Category:Ruby programming language">Bilder & media</a></div></li> <li><a rel="nofollow" class="external text" href="http://www.ruby-lang.org">Rubys officiella webbsida</a></li> <li><a rel="nofollow" class="external text" href="http://www.ruby-doc.org">www.ruby-doc.org</a></li> <li><a rel="nofollow" class="external text" href="https://rubyonrails.org/">Ruby on Rails webbsida</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Guider">Guider</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Ruby&veaction=edit&section=7" title="Redigera avsnitt: Guider" class="mw-editsection-visualeditor"><span>redigera</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Ruby&action=edit&section=7" title="Redigera avsnitts källkod: Guider"><span>redigera wikitext</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="http://tryruby.org/">Try Ruby - Testa Ruby genom din webbläsare</a></li> <li><a rel="nofollow" class="external text" href="http://www.ruby-doc.org/docs/ProgrammingRuby">Programming Ruby</a></li> <li><a rel="nofollow" class="external text" href="http://www.poignantguide.net/">Why's (Poignant) Guide to Ruby</a></li></ul> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐64476968cd‐wl4g7 Cached time: 20241101220249 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.226 seconds Real time usage: 0.795 seconds Preprocessor visited node count: 3006/1000000 Post‐expand include size: 17165/2097152 bytes Template argument size: 5426/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 3/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 5884/5000000 bytes Lua time usage: 0.099/10.000 seconds Lua memory usage: 3067333/52428800 bytes Number of Wikibase entities loaded: 1/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 550.069 1 -total 23.97% 131.876 1 Mall:Commonscat 15.03% 82.667 1 Mall:Faktaruta_programspråk 10.34% 56.890 1 Mall:Faktamall 4.54% 24.991 1 Mall:Webbref 3.62% 19.931 1 Mall:Cite_web 3.19% 17.520 1 Mall:Citation/core 2.92% 16.084 1 Mall:Olika_betydelser 2.61% 14.333 1 Mall:PAGENAMEBASE 1.49% 8.199 3 Mall:Date --> <!-- Saved in parser cache with key svwiki:pcache:idhash:11561-0!canonical and timestamp 20241101220249 and revision id 55142791. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Hämtad från ”<a dir="ltr" href="https://sv.wikipedia.org/w/index.php?title=Ruby&oldid=55142791">https://sv.wikipedia.org/w/index.php?title=Ruby&oldid=55142791</a>”</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Wikipedia:Kategorier" title="Wikipedia:Kategorier">Kategori</a>: <ul><li><a href="/wiki/Kategori:Programspr%C3%A5k" title="Kategori:Programspråk">Programspråk</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Dolda kategorier: <ul><li><a href="/wiki/Kategori:Artiklar_som_beh%C3%B6ver_f%C3%B6rtydligas_2016-05" title="Kategori:Artiklar som behöver förtydligas 2016-05">Artiklar som behöver förtydligas 2016-05</a></li><li><a href="/wiki/Kategori:Artiklar_som_beh%C3%B6ver_f%C3%B6rtydligas-samtliga" title="Kategori:Artiklar som behöver förtydligas-samtliga">Artiklar som behöver förtydligas-samtliga</a></li><li><a href="/wiki/Kategori:Samtliga_artiklar_med_vem-mallar" title="Kategori:Samtliga artiklar med vem-mallar">Samtliga artiklar med vem-mallar</a></li><li><a href="/wiki/Kategori:Artiklar_med_vem-mallar_2012-06" title="Kategori:Artiklar med vem-mallar 2012-06">Artiklar med vem-mallar 2012-06</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> Sidan redigerades senast den 3 juli 2024 kl. 05.17.</li> <li id="footer-info-copyright">Wikipedias text är tillgänglig under licensen <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/deed.sv">Creative Commons Erkännande-dela-lika 4.0 Unported</a>. För bilder, se respektive bildsida (klicka på bilden). Se vidare <a href="/wiki/Wikipedia:Upphovsr%C3%A4tt" title="Wikipedia:Upphovsrätt">Wikipedia:Upphovsrätt</a> och <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">användarvillkor</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Wikimedias integritetspolicy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Om">Om Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Allm%C3%A4nt_f%C3%B6rbeh%C3%A5ll">Förbehåll</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Uppförandekod</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Utvecklare</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/sv.wikipedia.org">Statistik</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Information om kakor</a></li> <li id="footer-places-mobileview"><a href="//sv.m.wikipedia.org/w/index.php?title=Ruby&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobilvy</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-qnvsb","wgBackendResponseTime":158,"wgPageParseReport":{"limitreport":{"cputime":"0.226","walltime":"0.795","ppvisitednodes":{"value":3006,"limit":1000000},"postexpandincludesize":{"value":17165,"limit":2097152},"templateargumentsize":{"value":5426,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":3,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":5884,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 550.069 1 -total"," 23.97% 131.876 1 Mall:Commonscat"," 15.03% 82.667 1 Mall:Faktaruta_programspråk"," 10.34% 56.890 1 Mall:Faktamall"," 4.54% 24.991 1 Mall:Webbref"," 3.62% 19.931 1 Mall:Cite_web"," 3.19% 17.520 1 Mall:Citation/core"," 2.92% 16.084 1 Mall:Olika_betydelser"," 2.61% 14.333 1 Mall:PAGENAMEBASE"," 1.49% 8.199 3 Mall:Date"]},"scribunto":{"limitreport-timeusage":{"value":"0.099","limit":"10.000"},"limitreport-memusage":{"value":3067333,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-64476968cd-wl4g7","timestamp":"20241101220249","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Ruby","url":"https:\/\/sv.wikipedia.org\/wiki\/Ruby","sameAs":"http:\/\/www.wikidata.org\/entity\/Q161053","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q161053","author":{"@type":"Organization","name":"Bidragsgivare till Wikimedia-projekten"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2003-05-08T06:52:26Z","dateModified":"2024-07-03T04:17:32Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/0\/0e\/Ruby-logo-R.svg","headline":"programspr\u00e5k"}</script> </body> </html>