method
matches?
1.3.0 -
Show latest stable
- Class:
Spec::Matchers::RespondTo
matches?(actual)public
No documentation available.
# File lib/spec/matchers/respond_to.rb, line 11
def matches?(actual)
@actual = actual
@names.each do |name|
@names_not_responded_to << name unless actual.respond_to?(name) && matches_arity?(actual, name)
end
return @names_not_responded_to.empty?
end