method

run

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: IRB::Irb
run(conf = IRB.conf) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/irb.rb, line 420
    def run(conf = IRB.conf)
      conf[:IRB_RC].call(context) if conf[:IRB_RC]
      conf[:MAIN_CONTEXT] = context

      trap("SIGINT") do
        signal_handle
      end

      begin
        catch(:IRB_EXIT) do
          eval_input
        end
      ensure
        conf[:AT_EXIT].each{|hook| hook.call}
      end
    end
Register or log in to add new notes.