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