home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ruby164.zip / rbemx164.zip / ruby / bin / irb.cmd < prev    next >
OS/2 REXX Batch file  |  2001-06-18  |  376b  |  23 lines

  1. extproc ruby -Sx
  2. #!/usr/bin/env ruby
  3. #
  4. #   irb.rb - intaractive ruby
  5. #       $Release Version: 0.7.3 $
  6. #       $Revision: 1.2.2.1 $
  7. #       $Date: 2001/04/30 18:39:35 $
  8. #       by Keiju ISHITSUKA(keiju@ishitsuka.com)
  9. #
  10.  
  11. require "irb"
  12.  
  13. if __FILE__ == $0
  14.   IRB.start(__FILE__)
  15. else
  16.   # check -e option
  17.   if /^-e$/ =~ $0
  18.     IRB.start(__FILE__)
  19.   else
  20.     IRB.initialize(__FILE__)
  21.   end
  22. end
  23.