Module: IHash
- Included in:
- NotImplHash, RedBlackTreeImpl
- Defined in:
- lib/range_list/infrastructure/i_hash.rb
Instance Method Summary collapse
- #delete(key) ⇒ Object
- #each(&block) ⇒ Object
-
#floor_range(key) ⇒ Object
Gets the entry corresponding to the specified key; if no such entry exists, returns the entry for the greatest key less than the specified key; if no such entry exists, returns nil.
- #put(key, value) ⇒ Object
Instance Method Details
#delete(key) ⇒ Object
17 18 19 |
# File 'lib/range_list/infrastructure/i_hash.rb', line 17 def delete(key) raise NotImplementedError, "#{self.class} not implemented #{__method__} method" end |
#each(&block) ⇒ Object
6 7 8 |
# File 'lib/range_list/infrastructure/i_hash.rb', line 6 def each(&block) raise NotImplementedError, "#{self.class} not implemented #{__method__} method" end |
#floor_range(key) ⇒ Object
Gets the entry corresponding to the specified key; if no such entry exists, returns the entry for the greatest key less than the specified key; if no such entry exists, returns nil.
13 14 15 |
# File 'lib/range_list/infrastructure/i_hash.rb', line 13 def floor_range(key) raise NotImplementedError, "#{self.class} not implemented #{__method__} method" end |
#put(key, value) ⇒ Object
2 3 4 |
# File 'lib/range_list/infrastructure/i_hash.rb', line 2 def put(key, value) raise NotImplementedError, "#{self.class} not implemented #{__method__} method" end |