Class: Debugger::CommandProcessor::State

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug/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:



366
367
368
369
370
371
372
# File 'lib/ruby-debug/processor.rb', line 366

def initialize
  super()
  @frame_pos = 0
  @previous_line = nil
  @proceed = false
  yield self
end

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



362
363
364
# File 'lib/ruby-debug/processor.rb', line 362

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



364
365
366
# File 'lib/ruby-debug/processor.rb', line 364

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



362
363
364
# File 'lib/ruby-debug/processor.rb', line 362

def context
  @context
end

#displayObject

Returns the value of attribute display.



363
364
365
# File 'lib/ruby-debug/processor.rb', line 363

def display
  @display
end

#fileObject

Returns the value of attribute file.



362
363
364
# File 'lib/ruby-debug/processor.rb', line 362

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



363
364
365
# File 'lib/ruby-debug/processor.rb', line 363

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



364
365
366
# File 'lib/ruby-debug/processor.rb', line 364

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



362
363
364
# File 'lib/ruby-debug/processor.rb', line 362

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



363
364
365
# File 'lib/ruby-debug/processor.rb', line 363

def previous_line
  @previous_line
end

Instance Method Details

#confirm(*args) ⇒ Object



387
388
389
# File 'lib/ruby-debug/processor.rb', line 387

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

#errmsg(*args) ⇒ Object

FIXME: use delegate?



375
376
377
# File 'lib/ruby-debug/processor.rb', line 375

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


379
380
381
# File 'lib/ruby-debug/processor.rb', line 379

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


383
384
385
# File 'lib/ruby-debug/processor.rb', line 383

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

#proceedObject



395
396
397
# File 'lib/ruby-debug/processor.rb', line 395

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


391
392
393
# File 'lib/ruby-debug/processor.rb', line 391

def proceed?
  @proceed
end