Class: Indexers::ComputedSorts

Inherits:
Object
  • Object
show all
Defined in:
lib/indexers/computed_sorts.rb

Instance Method Summary collapse

Instance Method Details

#add(name, &block) ⇒ Object



4
5
6
# File 'lib/indexers/computed_sorts.rb', line 4

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

#find(name) ⇒ Object



8
9
10
# File 'lib/indexers/computed_sorts.rb', line 8

def find(name)
  registry[name]
end