Method: FuzzyTools::Index#initialize
- Defined in:
- lib/fuzzy_tools/index.rb
#initialize(options = {}) ⇒ Index
Returns a new instance of Index.
8 9 10 11 12 |
# File 'lib/fuzzy_tools/index.rb', line 8 def initialize( = {}) @source = [:source] @indexed_attribute = [:attribute] || :to_s build_index end |