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

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

Instance Method Summary (collapse)

Constructor Details

- (BooleanMatcher) initialize(ignore)

A new instance of BooleanMatcher

46
47
# File 'lib/rspec/mocks/argument_matchers.rb', line 46
def initialize(ignore)
end

Instance Method Details

- (Object) ==(value)

49
50
51
# File 'lib/rspec/mocks/argument_matchers.rb', line 49
def ==(value)
  [true,false].include?(value)
end