Class: XRBP::SHAMap::TreeNode
- Defined in:
- lib/xrbp/nodestore/shamap/tree_node.rb
Overview
Terminating tree node referencing concrete data
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ TreeNode
constructor
A new instance of TreeNode.
- #peek_item ⇒ Object
- #tree_node? ⇒ Boolean
Methods inherited from Node
Methods included from NodeFactory
Constructor Details
#initialize(args = {}) ⇒ TreeNode
Returns a new instance of TreeNode.
7 8 9 10 |
# File 'lib/xrbp/nodestore/shamap/tree_node.rb', line 7 def initialize(args={}) super @item = args[:item] end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
5 6 7 |
# File 'lib/xrbp/nodestore/shamap/tree_node.rb', line 5 def item @item end |
Instance Method Details
#peek_item ⇒ Object
16 17 18 |
# File 'lib/xrbp/nodestore/shamap/tree_node.rb', line 16 def peek_item item end |
#tree_node? ⇒ Boolean
12 13 14 |
# File 'lib/xrbp/nodestore/shamap/tree_node.rb', line 12 def tree_node? true end |