Class: Byebug::Processor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/byebug/processor.rb

Overview

Should this be a mixin?

Direct Known Subclasses

CommandProcessor, ControlCommandProcessor

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#interfaceObject

Returns the value of attribute interface.



9
10
11
# File 'lib/byebug/processor.rb', line 9

def interface
  @interface
end

Instance Method Details

#afmt(msg, newline = "\n") ⇒ Object

Format msg with gdb-style annotation header



15
16
17
# File 'lib/byebug/processor.rb', line 15

def afmt(msg, newline="\n")
  "\032\032#{msg}#{newline}"
end

#aprint(msg) ⇒ Object



19
20
21
# File 'lib/byebug/processor.rb', line 19

def aprint(msg)
  print afmt(msg) if Byebug.annotate.to_i > 2
end