Class: Spec::Mocks::ArgumentConstraints::BooleanConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb

Instance Method Summary collapse

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