Module: Readapt::Message
- Defined in:
- lib/readapt/message.rb,
lib/readapt/message/base.rb,
lib/readapt/message/next.rb,
lib/readapt/message/pause.rb,
lib/readapt/message/attach.rb,
lib/readapt/message/launch.rb,
lib/readapt/message/scopes.rb,
lib/readapt/message/step_in.rb,
lib/readapt/message/threads.rb,
lib/readapt/message/continue.rb,
lib/readapt/message/evaluate.rb,
lib/readapt/message/step_out.rb,
lib/readapt/message/variables.rb,
lib/readapt/message/disconnect.rb,
lib/readapt/message/initialize.rb,
lib/readapt/message/stack_trace.rb,
lib/readapt/message/set_breakpoints.rb,
lib/readapt/message/configuration_done.rb,
lib/readapt/message/set_exception_breakpoints.rb
Defined Under Namespace
Classes: Attach, Base, ConfigurationDone, Continue, Disconnect, Evaluate, Initialize, Launch, Next, Pause, Scopes, SetBreakpoints, SetExceptionBreakpoints, StackTrace, StepIn, StepOut, Threads, Variables
Constant Summary
collapse
- @@messages =
{}
- @@seq =
0
Class Method Summary
collapse
Class Method Details
.process(arguments, debugger) ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/readapt/message.rb', line 31
def self.process arguments, debugger
klass = @@messages[arguments['command']]
if klass.nil?
STDERR.puts "Debugger received unrecognized command `#{arguments['command']}`"
Message::Base.new(arguments, debugger)
else
message = klass.new(arguments['arguments'], debugger)
message.run
message
end
end
|
.register(name, klass) ⇒ Object
27
28
29
|
# File 'lib/readapt/message.rb', line 27
def self.register name, klass
@@messages[name] = klass
end
|