Class: Dwarf::TreeNode

Inherits:
Tree::TreeNode
  • Object
show all
Defined in:
lib/dwarf/tree_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, content = nil) ⇒ TreeNode

Returns a new instance of TreeNode.



8
9
10
11
12
13
# File 'lib/dwarf/tree_node.rb', line 8

def initialize(name, content = nil)
  examples = []
  classification = nil
  attribute = nil
  super(name, content)
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



6
7
8
# File 'lib/dwarf/tree_node.rb', line 6

def attribute
  @attribute
end

#classificationObject

Returns the value of attribute classification.



5
6
7
# File 'lib/dwarf/tree_node.rb', line 5

def classification
  @classification
end

#examplesObject

Returns the value of attribute examples.



4
5
6
# File 'lib/dwarf/tree_node.rb', line 4

def examples
  @examples
end