1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ruby Programming Language</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/low.css" />
<link rel="stylesheet" type="text/css" href="/stylesheets/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/stylesheets/print.css" media="print" />
<link title="Low vision" rel="alternate stylesheet" type="text/css" href="/stylesheets/low_vision_screen.css" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link href="/en/feeds/news.rss" rel="alternate" title="RSS" type="application/rss+xml" />
</head>
<body id="home-page-layout">
<div id="page">
<div id="header">
<div id="logo"><img src="/images/logo.gif" width="331" height="119" alt="Ruby - A Programmer's Best Friend" title="" /></div>
<div class="site-links">
<a href="/en/downloads/">Downloads</a><span class="separator"> | </span><a href="/en/documentation/">Documentation</a><span class="separator"> | </span><a href="/en/libraries/">Libraries</a><span class="separator"> | </span><a href="/en/community/">Community</a><span class="separator"> | </span><a href="/en/news/">News</a><span class="separator"> | </span><a href="/en/security/">Security</a><span class="separator"> | </span><a href="/en/about/">About Ruby</a>
</div>
</div>
<hr class="hidden-modern" />
<div id="main-wrapper">
<div id="main">
<div id="content-wrapper">
<div id="head-wrapper-1">
<div id="head-wrapper-2">
<div id="head">
<div id="intro">
<h1>Ruby is…</h1>
<p>A dynamic, open source programming language with a focus on
simplicity and productivity. It has an elegant syntax that is
natural to read and easy to write.</p>
<p><a href="about/">Read More…</a></p>
</div>
<div id="code">
<div class="comment"># The Greeter class</div>
<div><span class="keyword">class</span> Greeter</div>
<div> <span class="keyword">def</span> initialize<span class="op">(</span>name<span class="op">)</span></div>
<div> @name <span class="op">=</span> name<span class="op">.</span>capitalize</div>
<div> <span class="keyword">end</span></div>
<div class="blank-line"> </div>
<div> <span class="keyword">def</span> salute</div>
<div> puts <span class="string">"Hello #{</span><span class="op">@</span>name<span class="string">}!"</span></div>
<div> <span class="keyword">end</span></div>
<div><span class="keyword">end</span></div>
<div class="blank-line"> </div>
<div class="comment"># Create a new object</div>
<div>g <span class="op">=</span> Greeter<span class="op">.</span>new<span class="op">(</span><span class="string">"world"</span><span class="op">)</span></div>
<div class="blank-line"> </div>
<div class="comment"># Output "Hello World!"</div>
<div>g<span class="op">.</span>salute</div>
</div>
</div>
</div>
</div>
<div id="content">
<div class="post">
<h3><a href="/en/news/2008/11/10/scotland-on-rails-2009/">Scotland on Rails 2009</a></h3>
<p><a href="http://scotlandonrails.com">Scotland on Rails</a> is pleased to announce that Conference2009 will be held March 26-28 in Edinburgh, Scotland.</p>
<p>We are now accepting submissions. The closing date for submissions is December 1st 2008, so there’s still time! Please mail your plaintext proposals for 45 minute sessions to <a href="mailto:submissions@scotlandonrails.com">submissions@scotlandonrails.com</a>.</p>
<p>Alternatively, if you are interested in sponsoring the conference, please mail <a href="mailto:sponsorship@scotlandonrails.com">sponsorship@scotlandonrails.com</a> for a prospectus.</p>
<p>Lastly, if you wish to be notified when we open for registration, you can sign up on the site.</p>
<p>Come and enjoy all that Edinburgh has to offer (whisky! castle! volcano! ruby! whisky!) in March. We hope to see you there.</p>
<p class="post-info">Posted by James Edward Gray II on 10 Nov 2008</p>
</div>
<div class="post">
<h3><a href="/en/news/2008/11/08/mountainwest-rubyconf-2009-dates-and-cfp/">MountainWest RubyConf 2009 dates and CFP</a></h3>
<p><a href="http://mtnwestrubyconf.org">MountainWest RubyConf 2009</a> will be held March 13-14, 2009, in Salt Lake City, Utah, <span class="caps">USA</span>.</p>
<p>Proposals to speak at this regional conference are now being accepted. Please send your proposal to proposals@mtnwestrubyconf.org.</p>
<p>The submission deadline is midnight (MST) on December 31st, 2008.</p>
<p>There are sponsorship opportunities available as well. Please contact sponsorship@mtnwestruby.org if you are interested.</p>
<p>Please see <a href="http://mtnwestrubyconf.org">mtnwestrubyconf.org/</a> for more details as they become available.</p>
<p><a href="/en/news/2008/11/08/mountainwest-rubyconf-2009-dates-and-cfp/">Continue Reading…</a></p>
<p class="post-info">Posted by james on 08 Nov 2008</p>
</div>
<div id="news">
<h3><a href="/en/news/">Other News</a></h3>
<ul>
<li><a href="/en/news/2008/10/28/ruby-1-9-1-preview-1-released/"> Ruby 1.9.1-preview 1 released</a>
<span class="post-info">Posted by james on 28 Oct 2008</span></li>
<li><a href="/en/news/2008/10/02/rubyconf-2008-is-sold-out/">RubyConf 2008 is Sold-out</a>
<span class="post-info">Posted by james on 02 Oct 2008</span></li>
<li><a href="/en/news/2008/09/09/voices-that-matter-2008/">Voices That Matter 2008</a>
<span class="post-info">Posted by James Edward Gray II on 09 Sep 2008</span></li>
</ul>
<ul>
<li><a href="/en/news/2008/08/23/dos-vulnerability-in-rexml/">DoS vulnerability in REXML</a>
<span class="post-info">Posted by Shugo Maeda on 23 Aug 2008</span></li>
<li><a href="/en/news/2008/08/11/ruby-1-8-7-p72-and-1-8-6-p287-released/">Ruby 1.8.7-p72 and 1.8.6-p287 released</a>
<span class="post-info">Posted by Shugo Maeda on 11 Aug 2008</span></li>
<li><a href="/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/">Multiple vulnerabilities in Ruby</a>
<span class="post-info">Posted by Shugo Maeda on 08 Aug 2008</span></li>
</ul>
<p class="more"><a href="/en/news/">More News…</a></p>
</div>
</div>
</div>
<hr class="hidden-modern" />
<div id="sidebar-wrapper">
<div id="sidebar">
<div class="navigation"><a href="/en/downloads/"><img src="/images/download.gif" alt="Download Ruby" title="" /></a></div>
<div class="navigation">
<h3><strong>Get Started,</strong> it’s easy!</h3>
<ul class="menu">
<li><a href="http://tryruby.hobix.com/">Try Ruby! (in your browser)</a></li>
<li><a href="/en/documentation/quickstart/">Ruby in Twenty Minutes</a></li>
<li><a href="/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a></li>
</ul>
</div>
<div class="navigation">
<h3><strong>Explore</strong> a new world…</h3>
<ul class="menu">
<li><a href="/en/documentation/">Documentation</a></li>
<li><a href="http://www.amazon.com">Books</a></li>
<li><a href="/en/libraries/">Libraries</a></li>
<li><a href="/en/documentation/success-stories/">Success Stories</a></li>
</ul>
</div>
<div class="navigation">
<h3><strong>Participate</strong> in a friendly and growing community.</h3>
<ul>
<li><a href="/en/community/mailing-lists/">Mailing Lists</a>: Talk about Ruby with programmers from all around the world.</li>
<li><a href="/en/community/user-groups/">User Groups</a>: Get in contact with Rubyists in your area.</li>
<li><a href="/en/community/weblogs/">Weblogs</a>: Read about what’s happening right now in the Ruby community.</li>
<li><a href="/en/community/ruby-core/">Ruby Core</a>: Help polish the rough edges of the latest Ruby.</li>
<li><a href="http://redmine.ruby-lang.org/">Issue Tracking</a>: Report or help solve issues in Ruby.</li>
</ul>
</div>
<h3>Top Ruby Projects</h3>
<ul>
<li><a href="http://rubyforge.org/projects/instantrails/" title="Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all pre-configured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment. ">Instant Rails</a></li>
<li><a href="http://rubyforge.org/projects/ruby/" title="Main Ruby language project for providing a mirror of the Ruby releases, tracking bugs, etc.">Ruby</a></li>
<li><a href="http://rubyforge.org/projects/nitro/" title="Nitro is an efficient, yet simple engine for developing professional Web Applications using the Ruby language.">Nitro</a></li>
<li><a href="http://rubyforge.org/projects/activesupport/" title="Utility classes and extension to the standard library that were required by Rails, but found of general use.">Active Support</a></li>
<li><a href="http://rubyforge.org/projects/typo/" title="Typo is a lean weblogging engine powered by rails. It supports XMLRPC posting, ping/trackback, comments, textile, markdown, categories, all common exports, fulltext search and so on.">typo</a></li>
</ul>
<p class="more"><a href="/en/libraries/top-projects/">More…</a></p>
<h3>Syndicate</h3>
<p><a href="/en/feeds/news.rss">Recent News (RSS)</a></p>
</div>
</div>
<hr class="hidden-modern" />
<div class="foot">
<div class="site-links">
<a href="/en/downloads/">Downloads</a><span class="separator"> | </span><a href="/en/documentation/">Documentation</a><span class="separator"> | </span><a href="/en/libraries/">Libraries</a><span class="separator"> | </span><a href="/en/community/">Community</a><span class="separator"> | </span><a href="/en/news/">News</a><span class="separator"> | </span><a href="/en/security/">Security</a><span class="separator"> | </span><a href="/en/about/">About Ruby</a>
</div>
</div>
</div>
</div>
<div id="search-box">
<form id="search-form" action="/en/search/">
<table class="fieldset">
<tr>
<td>
<input class="field" type="text" name="q" />
</td>
<td>
<input class="button" type="submit" value="Search" />
</td>
</tr>
</table>
</form>
</div>
<div id="footer">
<div class="fine-print">
<p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_CN/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a> and <a href="/it/">Italian</a>.</p>
<p>This website is made with Ruby and powered by <a href="http://radiantcms.org">Radiant CMS</a>.
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
our <a href="mailto:webmaster@ruby-lang.org">webmaster</a> for questions or comments
concerning this website.</p>
</div>
</div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-620926-1";
urchinTracker();
</script>
</body>
</html>
|