Module: Picky::Category::Location

Defined in:
lib/picky/category/location.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.install_on(category, grid, precision, anchor) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/picky/category/location.rb', line 6

def self.install_on category, grid, precision, anchor
  category.extend self

  exact_bundle = category.exact
  category.exact   = Wrappers::Bundle::Location.new(exact_bundle, grid, precision: precision, anchor: anchor)
  category.partial = Wrappers::Bundle::Location.new(exact_bundle, grid, precision: precision, anchor: anchor)

  category
end

Instance Method Details

#tokenizerObject

Only uses a basic tokenizer that's already geared towards numbers.



18
19
20
# File 'lib/picky/category/location.rb', line 18

def tokenizer
  @tokenizer ||= Tokenizer.new
end