Class: Contract::Check::All
Overview
Checks that all the specified conditions match. Example:
signature :x, Contract::Check::All[Array, Enumerable]
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Contract::Check::Base
Instance Method Details
#===(other) ⇒ Object
59 60 61 |
# File 'lib/contract/integration.rb', line 59 def ===(other) @args.all? { |arg| arg === other } end |