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

28 lines
387 B
Ruby
Raw Normal View History

#!/usr/bin/env ruby
#
# irb.rb - intaractive ruby
# $Release Version: 0.6 $
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nippon Rational Inc.)
#
# --
# Usage:
#
# irb.rb [options] file_name opts
#
#
require "irb/main"
if __FILE__ == $0
IRB.start(__FILE__)
else
# check -e option
if /^-e$/ =~ $0
IRB.start(__FILE__)
else
IRB.initialize(__FILE__)
end
end