Parent

Methods

Class Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::DuckTypeMatcher

Public Class Methods

new(*methods_to_respond_to) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 96
96:         def initialize(*methods_to_respond_to)
97:           @methods_to_respond_to = methods_to_respond_to
98:         end

Public Instance Methods

==(value) click to toggle source
     # File lib/spec/mocks/argument_matchers.rb, line 100
100:         def ==(value)
101:           @methods_to_respond_to.all? { |sym| value.respond_to?(sym) }
102:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.