Module: IRB

Defined in:
lib/hudkins/command/irb_start.rb

Overview

Defined Under Namespace

Classes: Irb

Class Method Summary collapse

Class Method Details

.get_bindingObject



16
17
18
# File 'lib/hudkins/command/irb_start.rb', line 16

def self.get_binding
  @@hack_binding
end

.start_session(ap_path = nil, binding = nil) ⇒ Object

originally used the code snippet from the above link, which turned out to be a snippet from ‘ruby-debug’. However, I was having problems with CNTR-C and I realized I wanted to mimic irb, just be able to actually pass Irb.new a workspace param which it expected.



11
12
13
14
# File 'lib/hudkins/command/irb_start.rb', line 11

def self.start_session(ap_path = nil, binding = nil)
  @@hack_binding = binding
  IRB.start ap_path
end