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.
45 46 |
# File 'lib/spec/mocks/argument_expectation.rb', line 45 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
48 49 50 |
# File 'lib/spec/mocks/argument_expectation.rb', line 48 def matches?(value) value.is_a?(Numeric) end |