Sha256: e83f7455681fa85a28de827ddc6cd0b7560ce3ac528f8effb79157111ac28ec3

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

module Picky

  module Indexed
    module Wrappers
      module Category

        module Location

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

            category.class_eval do
              define_method :indexed_exact do
                wrapped_exact
              end
              define_method :indexed_partial do
                wrapped_exact
              end
            end

          end

        end

      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
picky-3.0.0.pre5 lib/picky/indexed/wrappers/category/location.rb
picky-3.0.0.pre4 lib/picky/indexed/wrappers/category/location.rb
picky-3.0.0.pre3 lib/picky/indexed/wrappers/category/location.rb
picky-3.0.0.pre2 lib/picky/indexed/wrappers/category/location.rb
picky-3.0.0.pre1 lib/picky/indexed/wrappers/category/location.rb