Class: Spec::Mocks::ArgumentMatchers::BooleanMatcher
- Defined in:
- lib/vendor/plugins/rspec/lib/spec/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.
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 |