Created
April 17, 2009 13:35
-
-
Save purzelrakete/97025 to your computer and use it in GitHub Desktop.
evented irb
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
#!/usr/local/bin/ruby | |
# | |
# irb.rb - intaractive ruby | |
# $Release Version: 0.9.5 $ | |
# $Revision: 11708 $ | |
# $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $ | |
# by Keiju ISHITSUKA([email protected]) | |
# | |
require "irb" | |
require 'rubygems' | |
require 'eventmachine' | |
if __FILE__ == $0 | |
EM.run do | |
IRB.start(__FILE__) | |
end | |
else | |
# check -e option | |
if /^-e$/ =~ $0 | |
EM.run do | |
IRB.start(__FILE__) | |
end | |
else | |
EM.run do | |
IRB.setup(__FILE__) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment