Class: RSpec::Mocks::ArgumentMatchers::BooleanMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/mocks/argument_matchers.rb

Instance Method Summary collapse

Constructor Details

#initialize(ignore) ⇒ BooleanMatcher

Returns a new instance of BooleanMatcher.



45
46
# File 'lib/rspec/mocks/argument_matchers.rb', line 45

def initialize(ignore)
end

Instance Method Details

#==(value) ⇒ Object



48
49
50
# File 'lib/rspec/mocks/argument_matchers.rb', line 48

def ==(value)
  TrueClass === value || FalseClass === value
end