Class: Spec::Mocks::NumericArgConstraint

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

Instance Method Summary collapse

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

Returns:

  • (Boolean)


48
49
50
# File 'lib/spec/mocks/argument_expectation.rb', line 48

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