Class: RSpec::Mocks::ArgumentMatchers::BooleanMatcher
- Inherits:
-
Object
- Object
- RSpec::Mocks::ArgumentMatchers::BooleanMatcher
- Defined in:
- lib/rspec/mocks/argument_matchers.rb
Instance Method Summary collapse
- #==(value) ⇒ Object
-
#initialize(ignore) ⇒ BooleanMatcher
constructor
A new instance of BooleanMatcher.
Constructor Details
#initialize(ignore) ⇒ BooleanMatcher
Returns a new instance of BooleanMatcher.
46 47 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 46 def initialize(ignore) end |
Instance Method Details
#==(value) ⇒ Object
49 50 51 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 49 def ==(value) [true,false].include?(value) end |