Class: CouchPotato::RSpec::MapToProxy
- Inherits:
-
Object
- Object
- CouchPotato::RSpec::MapToProxy
- Defined in:
- lib/couch_potato/rspec/matchers/map_to_matcher.rb
Instance Method Summary collapse
-
#initialize(input_ruby) ⇒ MapToProxy
constructor
A new instance of MapToProxy.
- #to(*expected_ruby) ⇒ Object
Constructor Details
#initialize(input_ruby) ⇒ MapToProxy
Returns a new instance of MapToProxy.
7 8 9 |
# File 'lib/couch_potato/rspec/matchers/map_to_matcher.rb', line 7 def initialize(input_ruby) @input_ruby = input_ruby end |
Instance Method Details
#to(*expected_ruby) ⇒ Object
11 12 13 |
# File 'lib/couch_potato/rspec/matchers/map_to_matcher.rb', line 11 def to(*expected_ruby) MapToMatcher.new(expected_ruby, @input_ruby) end |