Class: Contract::Check::Any
Overview
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Contract::Check::Base
Instance Method Details
#===(other) ⇒ Object
70 71 72 |
# File 'lib/contract/integration.rb', line 70 def ===(other) @args.any? { |arg| arg === other } end |