Parent

Methods

Class/Module 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
def initialize(*methods_to_respond_to)
  @methods_to_respond_to = methods_to_respond_to
end

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.