Parent

Methods

RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher

Public Class Methods

new(*methods_to_respond_to) click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 85
85:         def initialize(*methods_to_respond_to)
86:           @methods_to_respond_to = methods_to_respond_to
87:         end

Public Instance Methods

==(value) click to toggle source
    # File lib/rspec/mocks/argument_matchers.rb, line 89
89:         def ==(value)
90:           @methods_to_respond_to.all? {|message| value.respond_to?(message)}
91:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.