Class: CouchPotato::RSpec::ReduceToProxy
- Inherits:
-
Object
- Object
- CouchPotato::RSpec::ReduceToProxy
- Defined in:
- lib/couch_potato/rspec/matchers/reduce_to_matcher.rb
Instance Method Summary collapse
-
#initialize(docs, keys, rereduce = false) ⇒ ReduceToProxy
constructor
A new instance of ReduceToProxy.
- #to(expected_ruby) ⇒ Object
Constructor Details
#initialize(docs, keys, rereduce = false) ⇒ ReduceToProxy
Returns a new instance of ReduceToProxy.
4 5 6 |
# File 'lib/couch_potato/rspec/matchers/reduce_to_matcher.rb', line 4 def initialize(docs, keys, rereduce = false) @docs, @keys, @rereduce = docs, keys, rereduce end |
Instance Method Details
#to(expected_ruby) ⇒ Object
8 9 10 |
# File 'lib/couch_potato/rspec/matchers/reduce_to_matcher.rb', line 8 def to(expected_ruby) ReduceToMatcher.new(expected_ruby, @docs, @keys, @rereduce) end |