Method: IRB.start
- Defined in:
- lib/irb.rb
.start(ap_path = nil) ⇒ Object
Initializes IRB and creates a new Irb.irb object at the TOPLEVEL_BINDING
895 896 897 898 899 900 901 902 903 904 905 906 907 |
# File 'lib/irb.rb', line 895 def start(ap_path = nil) STDOUT.sync = true $0 = File::basename(ap_path, ".rb") if ap_path setup(ap_path) if @CONF[:SCRIPT] irb = Irb.new(nil, @CONF[:SCRIPT]) else irb = Irb.new end irb.run(@CONF) end |