Match only things where the block evaluates to true.
Methods
Public Class methods
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 73
73: def initialize(methods)
74: @methods = methods
75: end
Public Instance methods
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 76
76: def ===(target)
77: @methods.all? { |m| target.respond_to?(m) }
78: end
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 79
79: def inspect
80: "ducktype(#{@methods.map{|m| m.inspect}.join(',')})"
81: end