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