Class: Hyperactive::Tree::Root
- Inherits:
-
Record::Bass
- Object
- Record::Bass
- Hyperactive::Tree::Root
- Includes:
- Cleaner::Accessors
- Defined in:
- lib/hyperactive/tree.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Root
constructor
A new instance of Root.
Methods included from Cleaner::Accessors
append_features, #dirty?, #is_clean!, #is_dirty!
Methods included from Hyperactive::Transactions::Accessors
Methods included from Index::Indexable
Methods included from Record::Persistent
#<=>, append_features, #create, #destroy!, #with_transaction
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
102 103 104 105 |
# File 'lib/hyperactive/tree.rb', line 102 def initialize super self.root = Node.nil_node end |
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
100 101 102 |
# File 'lib/hyperactive/tree.rb', line 100 def root @root end |
Instance Method Details
#[]=(key, value) ⇒ Object
107 108 109 |
# File 'lib/hyperactive/tree.rb', line 107 def []=(key, value) self.root = root.insert(key, value) end |