Skip to content

Instantly share code, notes, and snippets.

@purzelrakete
Created April 17, 2009 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purzelrakete/97025 to your computer and use it in GitHub Desktop.
Save purzelrakete/97025 to your computer and use it in GitHub Desktop.
evented irb
#!/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(keiju@ruby-lang.org)
#
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