Class: Tracing::StringTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/targets/string_target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/targets/string_target.rb', line 3

def text
  @text
end

Instance Method Details

#append(txt, context) ⇒ Object



5
6
7
# File 'lib/targets/string_target.rb', line 5

def append(txt, context)
  @text << txt
end