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