Class: Spec::Api::NumericArgConstraint
- Defined in:
- lib/spec/api/mocks/argument_expectation.rb
Instance Method Summary collapse
-
#initialize(ignore) ⇒ NumericArgConstraint
constructor
A new instance of NumericArgConstraint.
- #matches?(value) ⇒ Boolean
Constructor Details
#initialize(ignore) ⇒ NumericArgConstraint
Returns a new instance of NumericArgConstraint.
24 25 |
# File 'lib/spec/api/mocks/argument_expectation.rb', line 24 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
27 28 29 |
# File 'lib/spec/api/mocks/argument_expectation.rb', line 27 def matches?(value) value.is_a?(Numeric) end |