Class: Spec::Mocks::StringArgConstraint
- Defined in:
- lib/spec/mocks/argument_expectation.rb
Instance Method Summary collapse
-
#initialize(ignore) ⇒ StringArgConstraint
constructor
A new instance of StringArgConstraint.
- #matches?(value) ⇒ Boolean
Constructor Details
#initialize(ignore) ⇒ StringArgConstraint
Returns a new instance of StringArgConstraint.
65 66 |
# File 'lib/spec/mocks/argument_expectation.rb', line 65 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
68 69 70 |
# File 'lib/spec/mocks/argument_expectation.rb', line 68 def matches?(value) value.is_a?(String) end |