Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 301 Bytes
# load IronRuby library
require 'IronRuby'
# create a new IronRuby engine and a new runtime:
engine = IronRuby.create_engine
scope = engine.create_scope
while true
print "> "
code = gets
break if code.nil?
begin
p engine.execute(code, scope)
rescue Exception
puts $!
end
end