Class: Tinge::Sighting
- Inherits:
-
Object
- Object
- Tinge::Sighting
- Defined in:
- lib/tinge/sighting.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(color, node, parent = nil) ⇒ Sighting
constructor
A new instance of Sighting.
Constructor Details
#initialize(color, node, parent = nil) ⇒ Sighting
Returns a new instance of Sighting.
6 7 8 9 10 |
# File 'lib/tinge/sighting.rb', line 6 def initialize(color, node, parent = nil) @color = color @node = node @parent = parent end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
5 6 7 |
# File 'lib/tinge/sighting.rb', line 5 def color @color end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
5 6 7 |
# File 'lib/tinge/sighting.rb', line 5 def node @node end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
5 6 7 |
# File 'lib/tinge/sighting.rb', line 5 def parent @parent end |