Class: Spec::Mocks::BooleanArgConstraint
- Defined in:
- lib/spec/mocks/argument_expectation.rb
Instance Method Summary collapse
-
#initialize(ignore) ⇒ BooleanArgConstraint
constructor
A new instance of BooleanArgConstraint.
- #matches?(value) ⇒ Boolean
Constructor Details
#initialize(ignore) ⇒ BooleanArgConstraint
Returns a new instance of BooleanArgConstraint.
54 55 |
# File 'lib/spec/mocks/argument_expectation.rb', line 54 def initialize(ignore) end |
Instance Method Details
#matches?(value) ⇒ Boolean
57 58 59 60 61 |
# File 'lib/spec/mocks/argument_expectation.rb', line 57 def matches?(value) return true if value.is_a?(TrueClass) return true if value.is_a?(FalseClass) false end |