Sha256: de4d92074ff1f34a4bf36a74e19355378dc1f4000615094402bc3297980a07d4

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

module Indexers
  class ComputedSorts

    def add(name, &block)
      registry[name] = block
    end

    def find(name)
      registry[name]
    end

    private

    def registry
      @registry ||= {}
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
indexers-5.1.1 lib/indexers/computed_sorts.rb
indexers-5.1.0 lib/indexers/computed_sorts.rb
indexers-4.1.0.1 lib/indexers/computed_sorts.rb
indexers-4.1.0.0 lib/indexers/computed_sorts.rb