Module: Relix::ClassMethods
- Defined in:
- lib/relix/core.rb
Instance Method Summary collapse
- #deindex_by_primary_key!(pk) ⇒ Object
- #lookup(&block) ⇒ Object
- #lookup_values(index) ⇒ Object
- #relix(&block) ⇒ Object
Instance Method Details
#deindex_by_primary_key!(pk) ⇒ Object
33 34 35 |
# File 'lib/relix/core.rb', line 33 def deindex_by_primary_key!(pk) relix.deindex_by_primary_key!(pk) end |
#lookup(&block) ⇒ Object
25 26 27 |
# File 'lib/relix/core.rb', line 25 def lookup(&block) relix.lookup(&block) end |
#lookup_values(index) ⇒ Object
29 30 31 |
# File 'lib/relix/core.rb', line 29 def lookup_values(index) relix.lookup_values(index) end |
#relix(&block) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/relix/core.rb', line 16 def relix(&block) @relix ||= IndexSet.new(self, Relix) if block_given? @relix.instance_eval(&block) else @relix end end |