Class Contract::Check::All
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 all the specified conditions match. Example:

  signature :x, Contract::Check::All[Array, Enumerable]

Methods

===  

Public Instance methods

[Source]

    # File lib/contract/integration.rb, line 59
59:       def ===(other)
60:         @args.all? { |arg| arg === other }
61:       end

[Validate]