Class: Spec::Mocks::NumericArgConstraint
- Defined in:
- lib/spec/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.
66 67 |
# File 'lib/spec/mocks/argument_expectation.rb', line 66 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
69 70 71 |
# File 'lib/spec/mocks/argument_expectation.rb', line 69 def matches?(value) value.is_a?(Numeric) end |