Provides the necessary plumbing to wrap a matcher with a decorator. @private
# File lib/rspec/matchers/matcher_delegator.rb, line 9 def initialize(base_matcher) @base_matcher = base_matcher end
# File lib/rspec/matchers/matcher_delegator.rb, line 29 def initialize_copy(other) @base_matcher = @base_matcher.clone super end
# File lib/rspec/matchers/matcher_delegator.rb, line 13 def method_missing(*args, &block) base_matcher.__send__(*args, &block) end
:nocov:
# File lib/rspec/matchers/matcher_delegator.rb, line 23 def respond_to?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end
# File lib/rspec/matchers/matcher_delegator.rb, line 18 def respond_to_missing?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end