Class: SubSpawn::Internal::BiNode
- Inherits:
-
Object
- Object
- SubSpawn::Internal::BiNode
- Defined in:
- lib/subspawn/graph_helper.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#head ⇒ Object
Returns the value of attribute head.
-
#marker ⇒ Object
Returns the value of attribute marker.
-
#tail ⇒ Object
Returns the value of attribute tail.
Instance Method Summary collapse
-
#initialize(head, tail, data) ⇒ BiNode
constructor
A new instance of BiNode.
- #mark ⇒ Object
Constructor Details
#initialize(head, tail, data) ⇒ BiNode
Returns a new instance of BiNode.
144 145 146 |
# File 'lib/subspawn/graph_helper.rb', line 144 def initialize(head, tail, data) @head, @tail, @data, @marker = head, tail, data, nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
147 148 149 |
# File 'lib/subspawn/graph_helper.rb', line 147 def data @data end |
#head ⇒ Object
Returns the value of attribute head.
147 148 149 |
# File 'lib/subspawn/graph_helper.rb', line 147 def head @head end |
#marker ⇒ Object
Returns the value of attribute marker.
147 148 149 |
# File 'lib/subspawn/graph_helper.rb', line 147 def marker @marker end |
#tail ⇒ Object
Returns the value of attribute tail.
147 148 149 |
# File 'lib/subspawn/graph_helper.rb', line 147 def tail @tail end |
Instance Method Details
#mark ⇒ Object
148 149 150 |
# File 'lib/subspawn/graph_helper.rb', line 148 def mark @marker = true end |