Class: Spec::Mocks::ArgumentConstraints::BooleanConstraint
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb
Instance Method Summary collapse
- #==(value) ⇒ Object
-
#initialize(ignore) ⇒ BooleanConstraint
constructor
A new instance of BooleanConstraint.
Constructor Details
#initialize(ignore) ⇒ BooleanConstraint
Returns a new instance of BooleanConstraint.
49 50 |
# File 'lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb', line 49 def initialize(ignore) end |
Instance Method Details
#==(value) ⇒ Object
52 53 54 |
# File 'lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb', line 52 def ==(value) TrueClass === value || FalseClass === value end |