class RSpec::Matchers::MatcherDelegator
@private
Provides the necessary plumbing to wrap a matcher with a decorator.
def initialize(base_matcher)
def initialize(base_matcher) @base_matcher = base_matcher end
def initialize_copy(other)
def initialize_copy(other) @base_matcher = @base_matcher.clone super end
def method_missing(*args, &block)
def method_missing(*args, &block) base_matcher.__send__(*args, &block) end
def respond_to?(name, include_all=false)
def respond_to?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end
def respond_to_missing?(name, include_all=false)
def respond_to_missing?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end