Class Spec::Mocks::DuckTypeArgConstraint
In: lib/spec/mocks/argument_expectation.rb
Parent: Object

Methods

matches?   new  

Public Class methods

[Source]

    # File lib/spec/mocks/argument_expectation.rb, line 64
64:       def initialize(*methods_to_respond_do)
65:         @methods_to_respond_do = methods_to_respond_do
66:       end

Public Instance methods

[Source]

    # File lib/spec/mocks/argument_expectation.rb, line 68
68:       def matches?(value)
69:         @methods_to_respond_do.all? { |sym| value.respond_to?(sym) }
70:       end

[Validate]