Module: IHash

Included in:
NotImplHash, RedBlackTreeImpl
Defined in:
lib/range_list/infrastructure/i_hash.rb

Instance Method Summary collapse

Instance Method Details

#delete(key) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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.

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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