Class: Dwarf::TreeNode
- Inherits:
-
Tree::TreeNode
- Object
- Tree::TreeNode
- Dwarf::TreeNode
- Defined in:
- lib/dwarf/tree_node.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#examples ⇒ Object
Returns the value of attribute examples.
Instance Method Summary collapse
-
#initialize(name, content = nil) ⇒ TreeNode
constructor
A new instance of TreeNode.
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
#attribute ⇒ Object
Returns the value of attribute attribute.
6 7 8 |
# File 'lib/dwarf/tree_node.rb', line 6 def attribute @attribute end |
#classification ⇒ Object
Returns the value of attribute classification.
5 6 7 |
# File 'lib/dwarf/tree_node.rb', line 5 def classification @classification end |
#examples ⇒ Object
Returns the value of attribute examples.
4 5 6 |
# File 'lib/dwarf/tree_node.rb', line 4 def examples @examples end |