Object
@private
# File lib/rspec/mocks/argument_matchers.rb, line 219 def initialize(*methods_to_respond_to) @methods_to_respond_to = methods_to_respond_to end
# File lib/rspec/mocks/argument_matchers.rb, line 223 def ===(value) @methods_to_respond_to.all? {|message| value.respond_to?(message)} end
# File lib/rspec/mocks/argument_matchers.rb, line 227 def description "duck_type(#{@methods_to_respond_to.map(&:inspect).join(', ')})" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.