Class: ToknInternal::RPNode
- Inherits:
-
Object
- Object
- ToknInternal::RPNode
- Defined in:
- lib/tokn/range_partition.rb
Overview
A node within a RangePartition tree
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#id ⇒ Object
Returns the value of attribute id.
-
#set ⇒ Object
Returns the value of attribute set.
Instance Method Summary collapse
-
#initialize(id, set, children) ⇒ RPNode
constructor
A new instance of RPNode.
- #inspect ⇒ Object
Constructor Details
#initialize(id, set, children) ⇒ RPNode
Returns a new instance of RPNode.
222 223 224 225 226 |
# File 'lib/tokn/range_partition.rb', line 222 def initialize(id, set, children) @id = id @set = set @children = children end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
220 221 222 |
# File 'lib/tokn/range_partition.rb', line 220 def children @children end |
#id ⇒ Object
Returns the value of attribute id.
220 221 222 |
# File 'lib/tokn/range_partition.rb', line 220 def id @id end |
#set ⇒ Object
Returns the value of attribute set.
220 221 222 |
# File 'lib/tokn/range_partition.rb', line 220 def set @set end |
Instance Method Details
#inspect ⇒ Object
228 229 230 |
# File 'lib/tokn/range_partition.rb', line 228 def inspect return 'N' + id.to_s end |