IronRuby: Ruby on .NET
Posted by Daniel Butler Sat, 27 May 2006 12:20:00 GMT
Wilco Bauwer has been working for the past few months on a Ruby interpreter for the .NET CLR, a project similar to IronPython. So far only some of the basics of the language are implemented, and current work includes incremental progress on OO features, Mixins, CLR integration, dynanamic methods, and Ruby file includes.
Wilco ids documenting the challenges in a paper for a college assignment, and will publish the paper once it is complete.
Read Wilco Bauwer’s Blog
View Powerpoint Slides about the Project
Download IronRuby 0.0.1.0
Read on for a code example of implementing a simple media player in IronRuby.
The following code results in this screenshot:
require "mediaplayer/player.rb"
require "wpfextensions.rb" # load some helper methods
# set up reflection
@w.Content.FindName("Reflection").Fill =
VisualBrush.new @w.Content.FindName("MainGrid")
me = @w.Content.FindName("Player")
# setup auto replay
me.MediaEnded += proc { |sender, e| me.Clock.Controller.Begin }
me.load "c:\\WINDOWS\\system32\\oobe\\images\\intro.wmv"The project looks very promising.


I haven’t any word to appreciate this post…..Really I am impressed from this post….I can see that you are putting a lot of time and effort into your blog and detailed articles.
Great stuff.