Class Contract::Check::None
In: lib/contract/integration.rb
Parent: Base
Method Contract Module UnboundMethod Contract::Check::Any Contract::Check::All Contract::Check::None Contract::Check::Block Contract::Check::Base Contract::Check::Quack MethodSignatureMixin Kernel lib/contract/integration.rb

Checks that none of the specified conditions match. Example:

  signature :x, Contract::Check::None[Numeric, Symbol]
  signature :x, Contract::Check::Not[Comparable]

Methods

===  

Public Instance methods

[Source]

    # File lib/contract/integration.rb, line 82
82:       def ===(other)
83:         not @args.any? { |arg| arg === other }
84:       end

[Validate]