module IRB
nop.rb -
by Keiju ISHITSUKA(keiju@ruby-lang.org)
Public Class Methods
Source
# File lib/irb.rb, line 44 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 # Only display the banner in the irb executable if @CONF[:SHOW_BANNER] && ap_path&.end_with?("exe/irb") StartupMessage.display end end irb.run(@CONF) end
Initializes IRB and creates a new Irb.irb object at the TOPLEVEL_BINDING