Class: Spec::Api::NumericArgConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/api/mocks/argument_expectation.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


27
28
29
# File 'lib/spec/api/mocks/argument_expectation.rb', line 27

def matches?(value)
  value.is_a?(Numeric)
end