Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
131 lines (114 sloc) 5.46 KB
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>IronRuby</title>
<link rel="stylesheet" href="../css/master.css" type="text/css" media="screen"
charset="utf-8" />
<link rel="stylesheet" href="../css/lang.css" type="text/css" media="screen"
charset="utf-8" />
<script type="text/javascript">
window.DLR = {}
DLR.path = "../silverlight"
</script>
<script type="text/javascript" src="../silverlight/dlr.js"></script>
<script type="text/ruby" src="../silverlight/animate.rb" defer='false'></script>
</head>
<body id="ironruby" class='home page'>
<div id="nav">
<a href='index.html' class='active'>Overview</a><a href='download.html'>Download</a><a href='#'>Documentation</a><a href='#'>Support</a><a href='#'>Community</a><a href='#'>Blog</a>
</div>
<div id="header">
<h1><a href="#">IronRuby</a></h1>
<h2>the <a href="http://ruby-lang.org" class='lang' target='_blank'>Ruby</a>
programming language for the <a href='http://microsoft.com/NET' class='dotnet' target='_blank'>.NET</a> Framework
</h2>
</div>
<div id="what-is">
<p>
IronRuby is an open-source implementation of the Ruby
programming language which is tightly integrated with the
.NET Framework. IronRuby can use the entire .NET
Framework and any Ruby libraries, and all other .NET
languages can use Ruby code just as easily.
</p>
</div>
<div id="get">
<ul>
<li id='download'>
<h3><a href='http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30916#DownloadId=85513' target='_blank'>Download IronRuby 0.9</a></h3>
<p>
<a href='http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30916' target='_blank'>0.9.1 released 9/29/2009<br />
<a href='http://rubyforge.org/frs/shownotes.php?group_id=4359&release_id=39609' target='_blank'>release notes</a> | <a href="http://github.com/ironruby/ironruby/tree/v0.9.1" target='_blank'>source</a>
</p>
</li>
<li id="tryruby">
<h3><a href='http://ironruby.codeplex.com/wikipage?title=SilverlightInteractiveSession&referringTitle=Home' target="_blank">Try Ruby <span>in the <u>browser</u></span></a></h3>
<p>
Quickly run Ruby code in your
browser, without installing IronRuby.
</p>
<div id="console">
TODO: IronRuby console
</div>
</li>
<li id="tutorial">
<pre id="code-snippet"><code><span class="comment"># namespaces are modules</span>
<span class="keyword">include</span> <span class="constant">System</span>::<span class="constant">Collections</span>::<span class="constant">Generic</span>
<span class="comment"># indexers constrains type</span>
d = <span class="constant">Dictionary</span>[<span class="constant">String</span>, <span class="constant">Fixnum</span>].new
<span class="comment"># Ruby idioms just work</span>
d[<span class="string">'Hello'</span>] = <span class="number">1</span>
d[<span class="string">'Hi'</span>] = <span class="number">2</span>
<span class="comment"># this gives a TypeError</span>
d[<span class="number">3</span>] = <span class="number">3</span>
<span class="comment"># Enumerable methods work</span>
d.each{|kvp| <span class="keyword">puts</span> kvp}</code></pre>
<p>
Learn more with the online tutorial:
</p>
<a href='http://ironruby.com/tutorial' id="tutorial-image" target='_blank'>
<img src="../images/ironruby-tutorial.jpg" alt="IronRuby tutorial" />
</a>
</li>
<li class='clear'>&nbsp;</li>
</ul>
</div>
<ul class="question-answer">
<li>
<h3>Why IronRuby?</h3>
<p>
Ruby is an excellent
addition to the .NET Framework, providing Ruby developers with the power
of the .NET framework. Existing .NET developers can also use IronRuby
as a fast and expressive scripting language for embedding, testing, or
writing a new application from scratch.
</p>
<br />
<p>
And why target <span class="dotnet">.NET</span> you ask? The CLR is a great platform for creating
programming languages, and the DLR makes it all the more better for
dynamic languages. Also, the .NET framework (base class library,
presentation foundation, Silverlight, etc) give an amazing amount of
functionality and power to developers.</p>
</li>
</ul>
<ul class="question-answer">
<li>
<h3>Lorem Ipsum?</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</li>
</ul>
<ul id="footer">
<li>&copy; <a href='http://microsoft.com'>Microsoft Corporation</a></li>
<li id="footer-nav">
<a href='#'>Overview</a>|<a href='#'>Download</a>|<a href='#'>Documentation</a>|<a href='#'>Support</a>|<a href='#'>Community</a>|<a href='#'>Blog</a>
</li>
<li class="clear">&nbsp;</li>
</ul>
</body>
</html>
Something went wrong with that request. Please try again.