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)
-
- (ReduceToProxy) initialize(keys, values, rereduce = false)
constructor
A new instance of ReduceToProxy.
- - (Object) to(expected_ruby)
Constructor Details
- (ReduceToProxy) initialize(keys, values, rereduce = false)
A new instance of ReduceToProxy
4 5 6 |
# File 'lib/couch_potato/rspec/matchers/reduce_to_matcher.rb', line 4 def initialize(keys, values, rereduce = false) @keys, @values, @rereduce = keys, values, rereduce end |
Instance Method Details
- (Object) to(expected_ruby)
8 9 10 |
# File 'lib/couch_potato/rspec/matchers/reduce_to_matcher.rb', line 8 def to(expected_ruby) ReduceToMatcher.new(expected_ruby, @keys, @values, @rereduce) end |