Class: Spec::Mocks::ArgumentMatchers::BooleanMatcher

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

Instance Method Summary collapse

Constructor Details

#initialize(ignore) ⇒ BooleanMatcher

Returns a new instance of BooleanMatcher.



49
50
# File 'lib/vendor/plugins/rspec/lib/spec/mocks/argument_matchers.rb', line 49

def initialize(ignore)
end

Instance Method Details

#==(value) ⇒ Object



52
53
54
# File 'lib/vendor/plugins/rspec/lib/spec/mocks/argument_matchers.rb', line 52

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