Class: Rookout::Processor::Paths::Canopy::ObjectMarker

Inherits:
Marker
  • Object
show all
Defined in:
lib/rookout/processor/paths/canopy/markers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, obj) ⇒ ObjectMarker

Returns a new instance of ObjectMarker.



72
73
74
75
76
# File 'lib/rookout/processor/paths/canopy/markers.rb', line 72

def initialize text, obj
  super()
  @text = text
  @obj = obj
end

Instance Attribute Details

#objObject (readonly)

Returns the value of attribute obj.



79
80
81
# File 'lib/rookout/processor/paths/canopy/markers.rb', line 79

def obj
  @obj
end

#textObject (readonly)

Returns the value of attribute text.



78
79
80
# File 'lib/rookout/processor/paths/canopy/markers.rb', line 78

def text
  @text
end

Instance Method Details

#to_sObject



81
82
83
# File 'lib/rookout/processor/paths/canopy/markers.rb', line 81

def to_s
  @obj.to_s
end