Class: ActiveMock::Queries::WhereNotChain
- Inherits:
-
Object
- Object
- ActiveMock::Queries::WhereNotChain
- Defined in:
- lib/active_mock/queries.rb
Instance Method Summary collapse
-
#initialize(collection) ⇒ WhereNotChain
constructor
A new instance of WhereNotChain.
- #not(options = {}) ⇒ Object
Constructor Details
#initialize(collection) ⇒ WhereNotChain
31 32 33 |
# File 'lib/active_mock/queries.rb', line 31 def initialize(collection) @collection = collection end |
Instance Method Details
#not(options = {}) ⇒ Object
35 36 37 38 39 |
# File 'lib/active_mock/queries.rb', line 35 def not(={}) Queries.included_klass.new(@collection.reject do |record| Find.new(record).is_of() end) end |