Module: Picky::Category::Location
- Defined in:
- lib/picky/category/location.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#tokenizer ⇒ Object
Only uses a basic tokenizer that's already geared towards numbers.
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 |