Class: GitDag::TagNode

Inherits:
Node
  • Object
show all
Defined in:
lib/git-dag/tag_node.rb

Instance Attribute Summary

Attributes inherited from Node

#dot_node, #id, #label, #parents

Instance Method Summary collapse

Constructor Details

#initialize(id, dot_node, label, parents) ⇒ TagNode

Returns a new instance of TagNode.



3
4
5
6
7
8
# File 'lib/git-dag/tag_node.rb', line 3

def initialize(id, dot_node, label, parents)
  @id = id
  @dot_node = dot_node[0,6]
  @label = label
  @parents = parents
end