2000-05-12 05:07:57 -04:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
#
|
2007-10-03 10:39:54 -04:00
|
|
|
# irb.rb - interactive ruby
|
2005-04-13 11:27:09 -04:00
|
|
|
# $Release Version: 0.9.5 $
|
2000-05-12 05:07:57 -04:00
|
|
|
# $Revision$
|
2005-04-13 11:27:09 -04:00
|
|
|
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
|
2000-05-12 05:07:57 -04:00
|
|
|
#
|
|
|
|
|
2001-04-30 13:54:55 -04:00
|
|
|
require "irb"
|
2000-05-12 05:07:57 -04:00
|
|
|
|
|
|
|
if __FILE__ == $0
|
|
|
|
IRB.start(__FILE__)
|
|
|
|
else
|
|
|
|
# check -e option
|
2000-07-14 00:34:43 -04:00
|
|
|
if /^-e$/ =~ $0
|
2000-05-12 05:07:57 -04:00
|
|
|
IRB.start(__FILE__)
|
|
|
|
else
|
2002-11-18 21:00:18 -05:00
|
|
|
IRB.setup(__FILE__)
|
2000-05-12 05:07:57 -04:00
|
|
|
end
|
|
|
|
end
|