Match only things where the block evaluates to true.
# File lib/flexmock/argument_matchers.rb, line 76 def ===(target) @methods.all? { |m| target.respond_to?(m) } end
# File lib/flexmock/argument_matchers.rb, line 79 def inspect "ducktype(#{@methods.map{|m| m.inspect}.join(',')})" end
# File lib/flexmock/argument_matchers.rb, line 73 def initialize(methods) @methods = methods end