public
Description: Microsoft's Ruby language compiler that is built on top of the Dynamic Language Runtime.
Homepage: http://ironruby.net
Clone URL: git://github.com/ironruby/ironruby.git
ironruby / Merlin / Main / Languages / Ruby / Samples / Tutorial
name age message
..
file README.markdown Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
file TODO Sat Jul 18 17:29:57 -0700 2009 Pull of Shris remote [Jim Deville]
directory Tutorials/ Tue Sep 22 22:36:31 -0700 2009 Merge branch 'master' of git://github.com/tnach... [Jim Deville]
directory app/ Fri Oct 23 15:37:09 -0700 2009 Fix IronRuby tutorial scrolling bug, and clean ... [jschementi]
file build.bat Fri Oct 23 15:37:04 -0700 2009 Cleanup IronRuby tutorial scripts [jschementi]
file clean.bat Fri Oct 23 15:37:04 -0700 2009 Cleanup IronRuby tutorial scripts [jschementi]
file console_tutorial.rb Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
directory css/ Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
file deploy.bat Fri Oct 23 15:37:04 -0700 2009 Cleanup IronRuby tutorial scripts [jschementi]
file html_tutorial.rb Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
file sl_tutorial.html Fri Oct 23 15:37:07 -0700 2009 Get IronRuby tutorial tests running in Silverli... [jschementi]
file test.bat Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
directory test/ Fri Oct 23 15:37:07 -0700 2009 Get IronRuby tutorial tests running in Silverli... [jschementi]
file tutorial-sl.bat Fri Oct 23 15:37:04 -0700 2009 Cleanup IronRuby tutorial scripts [jschementi]
file tutorial.bat Mon Aug 24 15:26:13 -0700 2009 Tutorial improvements - HTML tutorial generates... [unknown]
directory wpf/ Wed Aug 05 12:27:18 -0700 2009 Fixes a bunch of issues preventing irtests.bat ... [shri]
file wpf_tutorial.rb Fri Sep 18 01:41:30 -0700 2009 Cleans up Tutorial by using new script-tag supp... [jschementi]
Merlin/Main/Languages/Ruby/Samples/Tutorial/README.markdown

IronRuby Tutorial

Description

The application is an interactive tutorial, allowing users to use a REPL window to follow along the teaching material

Topics covered

  • Creating WPF UI using XAML
    • Using Blend for UI design
    • Creating WPF FlowDocument from RDoc SimpleMarkup text
  • Creating domain-specific-languages (DSLs) in Ruby
  • Creating an application that can be developed incrementally from an interactive session with ability to reload modified source files.
  • Using a splash screen at application startup

Running the app

On the desktop:

ir.exe wpf_tutorial.rb

On Silverlight:

tutorial-sl.bat

Running the app interactively

Launch ir.exe:

load "wpf_tutorial.rb"
#=> true
# Edit wpf_tutorial.rb. For example, change the settings on the window in
# the XAML
reload # This should show the new window now...
#=> true

Running the tests

Both desktop and Silverlight:

tests.bat

Just desktop:

ir.exe test/test_console.rb

Just Silverlight:

ruby %MERLIN_ROOT%Hosts\Silverlight\Scripts\run_tests.rb