Class: SubSpawn::Internal::BiNode

Inherits:
Object
  • Object
show all
Defined in:
lib/subspawn/graph_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



147
148
149
# File 'lib/subspawn/graph_helper.rb', line 147

def data
  @data
end

#headObject

Returns the value of attribute head.



147
148
149
# File 'lib/subspawn/graph_helper.rb', line 147

def head
  @head
end

#markerObject

Returns the value of attribute marker.



147
148
149
# File 'lib/subspawn/graph_helper.rb', line 147

def marker
  @marker
end

#tailObject

Returns the value of attribute tail.



147
148
149
# File 'lib/subspawn/graph_helper.rb', line 147

def tail
  @tail
end

Instance Method Details

#markObject



148
149
150
# File 'lib/subspawn/graph_helper.rb', line 148

def mark
	@marker = true
end