Parent

Methods

FlexMock::DuckMatcher

                                                                  

Match only things where the block evaluates to true.

Public Class Methods

new(methods) click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 73
73:     def initialize(methods)
74:       @methods = methods
75:     end

Public Instance Methods

===(target) click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 76
76:     def ===(target)
77:       @methods.all? { |m| target.respond_to?(m) }
78:     end
inspect() click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 79
79:     def inspect
80:       "ducktype(#{@methods.map{|m| m.inspect}.join(',')})"
81:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.