1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

2000-05-12

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-05-12 09:07:57 +00:00
parent 014f2164ed
commit 9da4f78db4
46 changed files with 3491 additions and 188 deletions

28
sample/irb.rb Normal file
View file

@ -0,0 +1,28 @@
#!/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
tmp = ENV["TMP"] || ENV["TMPDIR"] || "/tmp"
if %r|#{tmp}/rb| =~ $0
IRB.start(__FILE__)
else
IRB.initialize(__FILE__)
end
end