Class: Debugger::State

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug-ide/ide_processor.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ State

Returns a new instance of State.

Yields:

  • (_self)

Yield Parameters:



114
115
116
117
118
119
120
# File 'lib/ruby-debug-ide/ide_processor.rb', line 114

def initialize
  @frame_pos = 0
  @previous_line = nil
  @proceed = false
  yield self
  @original_context = context
end

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



110
111
112
# File 'lib/ruby-debug-ide/ide_processor.rb', line 110

def binding
  @binding
end

#contextObject

Returns the value of attribute context.



109
110
111
# File 'lib/ruby-debug-ide/ide_processor.rb', line 109

def context
  @context
end

#fileObject

Returns the value of attribute file.



110
111
112
# File 'lib/ruby-debug-ide/ide_processor.rb', line 110

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



111
112
113
# File 'lib/ruby-debug-ide/ide_processor.rb', line 111

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



112
113
114
# File 'lib/ruby-debug-ide/ide_processor.rb', line 112

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



110
111
112
# File 'lib/ruby-debug-ide/ide_processor.rb', line 110

def line
  @line
end

#original_contextObject

Returns the value of attribute original_context.



109
110
111
# File 'lib/ruby-debug-ide/ide_processor.rb', line 109

def original_context
  @original_context
end

#previous_lineObject

Returns the value of attribute previous_line.



111
112
113
# File 'lib/ruby-debug-ide/ide_processor.rb', line 111

def previous_line
  @previous_line
end

Instance Method Details



122
123
124
# File 'lib/ruby-debug-ide/ide_processor.rb', line 122

def print(*args)
  @interface.print(*args)
end

#proceedObject



130
131
132
# File 'lib/ruby-debug-ide/ide_processor.rb', line 130

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


126
127
128
# File 'lib/ruby-debug-ide/ide_processor.rb', line 126

def proceed?
  @proceed
end

#restore_contextObject



134
135
136
# File 'lib/ruby-debug-ide/ide_processor.rb', line 134

def restore_context
  context = @original_context
end