1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/irb.rb
knu 7083ecb820 * sample/irb.rb, lib/irb.rb, lib/irb/*, doc/irb/*: Merge from irb
0.7.3 and irb-tools 0.7.1.

* instruby.rb: Install help-message's too.

* lib/irb/main.rb: This file is not needed anymore.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 18:39:35 +00:00

21 lines
327 B
Ruby

#!/usr/bin/env ruby
#
# irb.rb - intaractive ruby
# $Release Version: 0.7.3 $
# $Revision$
# $Date$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
require "irb"
if __FILE__ == $0
IRB.start(__FILE__)
else
# check -e option
if /^-e$/ =~ $0
IRB.start(__FILE__)
else
IRB.initialize(__FILE__)
end
end