Class: SporkDebugger::PreloadState

Inherits:
Object
  • Object
show all
Includes:
NetworkHelpers
Defined in:
lib/spork/ext/ruby-debug.rb

Instance Method Summary collapse

Methods included from NetworkHelpers

#find_port

Constructor Details

#initializePreloadState

Returns a new instance of PreloadState.



46
47
48
49
# File 'lib/spork/ext/ruby-debug.rb', line 46

def initialize
  install_hook
  listen_for_connection_signals
end

Instance Method Details

#finishObject



51
52
53
# File 'lib/spork/ext/ruby-debug.rb', line 51

def finish
  @tcp_service.close; @tcp_service = nil;
end

#transition_to_each_run_stateObject



55
56
57
58
# File 'lib/spork/ext/ruby-debug.rb', line 55

def transition_to_each_run_state
  finish
  SporkDebugger::EachRunState.new(@port)
end