Class: Spec::Mocks::StringArgConstraint

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

Instance Method Summary collapse

Constructor Details

#initialize(ignore) ⇒ StringArgConstraint

Returns a new instance of StringArgConstraint.



90
91
# File 'lib/spec/mocks/argument_expectation.rb', line 90

def initialize(ignore)
end

Instance Method Details

#matches?(value) ⇒ Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/spec/mocks/argument_expectation.rb', line 93

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