Module: IRB
- Defined in:
- lib/ruby-debug/commands/irb.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ExtendCommand
Class Method Summary collapse
Class Method Details
.start_session(binding) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/ruby-debug/commands/irb.rb', line 25 def self.start_session(binding) unless @__initialized args = ARGV.dup ARGV.replace([]) IRB.setup(nil) ARGV.replace(args) @__initialized = true end workspace = WorkSpace.new(binding) irb = Irb.new(workspace) @CONF[:IRB_RC].call(irb.context) if @CONF[:IRB_RC] @CONF[:MAIN_CONTEXT] = irb.context catch(:IRB_EXIT) do irb.eval_input end end |