File: irb.rb

package info (click to toggle)
ruby 1.4.3-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,068 kB
  • ctags: 7,509
  • sloc: ansic: 60,668; ruby: 23,106; yacc: 4,122; sh: 1,753; lisp: 997; makefile: 597; sed: 68; awk: 36; tcl: 31; perl: 17; python: 6
file content (30 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/local/bin/ruby
#
#   irb.rb - intaractive ruby
#   	$Release Version: 0.6 $
#   	$Revision: 1.1 $
#   	$Date: 1999/03/05 03:11:33 $
#   	by Keiju ISHITSUKA(Nippon Rational Inc.)
#
# --
# Usage:
#
#   irb.rb [options] file_name opts
#
#       Refer README about details of using irb .
#	(JP: $B>\$7$/$O(BREADME$B$r;2>H$7$F2<$5$$(B.)
#

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