Module: Ambition::Where
- Included in:
- Ambition
- Defined in:
- lib/ambition/where.rb
Instance Method Summary collapse
Instance Method Details
#detect(&block) ⇒ Object
7 8 9 |
# File 'lib/ambition/where.rb', line 7 def detect(&block) select(&block).first end |
#select(*args, &block) ⇒ Object
3 4 5 |
# File 'lib/ambition/where.rb', line 3 def select(*args, &block) query_context.add WhereProcessor.new(self, block) end |