Module: SearchBuilder::ClassMethods
- Defined in:
- lib/redisant/search_builder.rb
Instance Method Summary collapse
Instance Method Details
#find_search(name) ⇒ Object
11 12 13 |
# File 'lib/redisant/search_builder.rb', line 11 def find_search name searches[name.to_s] end |
#finder(name, options = {}) ⇒ Object
7 8 9 |
# File 'lib/redisant/search_builder.rb', line 7 def finder name, ={} searches[name.to_s] ||= Search.new name, self, end |
#searches ⇒ Object
15 16 17 |
# File 'lib/redisant/search_builder.rb', line 15 def searches @searches ||= {} end |