Class: Spec::Mocks::ArgumentConstraints::MatcherConstraint
- Defined in:
- lib/gems/rspec-1.1.11/lib/spec/mocks/argument_constraints.rb
Instance Method Summary collapse
- #==(value) ⇒ Object
-
#initialize(matcher) ⇒ MatcherConstraint
constructor
A new instance of MatcherConstraint.
Constructor Details
#initialize(matcher) ⇒ MatcherConstraint
Returns a new instance of MatcherConstraint.
87 88 89 |
# File 'lib/gems/rspec-1.1.11/lib/spec/mocks/argument_constraints.rb', line 87 def initialize(matcher) @matcher = matcher end |
Instance Method Details
#==(value) ⇒ Object
91 92 93 |
# File 'lib/gems/rspec-1.1.11/lib/spec/mocks/argument_constraints.rb', line 91 def ==(value) @matcher.matches?(value) end |