sample/irb.rb


DEFINITIONS

This source file includes following functions.


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