Class: IRB::RemoteService

Inherits:
Object
  • Object
show all
Defined in:
lib/drbirb/server.rb

Instance Method Summary collapse

Constructor Details

#initializeRemoteService

Returns a new instance of RemoteService.



46
47
48
49
50
51
# File 'lib/drbirb/server.rb', line 46

def initialize
  # i was getting e2mmap redefinition warnings,
  # so moved this out of start_with_io
  IRB.setup nil
  IRB.conf[:PROMPT_MODE] = :DEFAULT
end

Instance Method Details

#irb_start(input_proc = nil, output_proc = nil) ⇒ Object



53
54
55
# File 'lib/drbirb/server.rb', line 53

def irb_start input_proc=nil, output_proc=nil
  IRB.start_with_io_procs input_proc, output_proc
end