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.



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