Class Contract::Check::Quack
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 methods are answered. Example:

  signature :x, Contract::Check::Quack[:to_sym]

Methods

===  

Public Instance methods

[Source]

    # File lib/contract/integration.rb, line 50
50:       def ===(other)
51:         @args.all? { |arg| other.respond_to?(arg) }
52:       end

[Validate]