class Indexers::ComputedSorts

Public Instance Methods

add(name, &block) click to toggle source
# File lib/indexers/computed_sorts.rb, line 4
def add(name, &block)
  registry[name] = block
end
find(name) click to toggle source
# File lib/indexers/computed_sorts.rb, line 8
def find(name)
  registry[name]
end

Private Instance Methods

registry() click to toggle source
# File lib/indexers/computed_sorts.rb, line 14
def registry
  @registry ||= {}
end