Class: Algorithmable::DataStructs::OrderedSymbolTable

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/algorithmable/data_structs/ordered_symbol_table.rb

Instance Method Summary collapse

Constructor Details

#initialize(key_type, value_type) ⇒ OrderedSymbolTable

Returns a new instance of OrderedSymbolTable.


8
9
10
11
# File 'lib/algorithmable/data_structs/ordered_symbol_table.rb', line 8

def initialize(key_type, value_type)
  search_strategy_factory = Object.new.extend Algorithmable::Searches
  @imp = search_strategy_factory.new_binary_search_tree(key_type, value_type)
end