Class: Spec::Api::StringArgConstraint
- Defined in:
- lib/spec/api/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.
44 45 |
# File 'lib/spec/api/mocks/argument_expectation.rb', line 44 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
47 48 49 |
# File 'lib/spec/api/mocks/argument_expectation.rb', line 47 def matches?(value) value.is_a?(String) end |