Created
February 21, 2009 00:46
-
-
Save knzai/67811 to your computer and use it in GitHub Desktop.
call irb from script context
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
#stolen from http://pastie.org/395671 twitter:@seacreature. Just repo'ed here so I can find it again | |
require "irb" | |
IRB.setup(nil) | |
IRB.conf[:MAIN_CONTEXT] = IRB::Context.new(IRB::Irb.new) | |
require "irb/ext/multi-irb" | |
IRB.irb(nil,binding) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment