Created
May 1, 2009 06:00
-
-
Save jschementi/104899 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The first load path contains rb files which load .NET based libraries, | |
# including the standard library and the .NET library | |
$: | |
# => ["c:/dev/ironruby/Merlin/Main/Languages/Ruby/libs/", | |
# "c:/ruby/lib/ruby/site_ruby/1.8/", | |
# "c:/ruby/lib/ruby/1.8/", "."] | |
# Special require which enables CLR interop | |
# (mscorlib.rb doesn't exist on the load path) | |
require 'mscorlib' | |
# Loads system.rb (from the first load path), which requires | |
# System.dll by strong name | |
require 'system' | |
# Does the same as the above | |
require 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' | |
# Loads strscan.rb (from the first load path), which is a | |
# Ruby standard library, which is implemented in IronRuby.Libraries.dll | |
require 'strscan' | |
# Does the same as above | |
load_assembly 'IronRuby.Libraries', 'IronRuby.StandardLibrary.StringScanner' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment