Sha256: 44a398ae63782c47bbd15915d9858b7e2dfb8a156fc02d54e136a9f849610923

Contents?: true

Size: 572 Bytes

Versions: 10

Compression:

Stored size: 572 Bytes

Contents

module Internals
  module Indexed
    module Wrappers
      module Category

        module Location

          def self.install_on category, grid, precision = 1
            wrapped_exact = Internals::Indexed::Wrappers::Bundle::Location.new category.exact, grid: grid, precision: precision

            category.class_eval do
              define_method :exact do
                wrapped_exact
              end
              define_method :partial do
                wrapped_exact
              end
            end

          end

        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
picky-2.5.2 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.5.1 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.5.0 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.4.3 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.4.2 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.4.1 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.4.0 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.3.0 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.2.1 lib/picky/internals/indexed/wrappers/category/location.rb
picky-2.2.0 lib/picky/internals/indexed/wrappers/category/location.rb