class RSpec::Matchers::MatcherDelegator
Provides the necessary plumbing to wrap a matcher with a decorator. @private
Attributes
Public Class Methods
# File rspec-expectations/lib/rspec/matchers/matcher_delegator.rb, line 35 def initialize(base_matcher) @base_matcher = base_matcher end
Public Instance Methods
Calls superclass method
# File rspec-expectations/lib/rspec/matchers/matcher_delegator.rb, line 55 def initialize_copy(other) @base_matcher = @base_matcher.clone super end
# File rspec-expectations/lib/rspec/matchers/matcher_delegator.rb, line 39 def method_missing(*args, &block) base_matcher.__send__(*args, &block) end
:nocov:
Calls superclass method
# File rspec-expectations/lib/rspec/matchers/matcher_delegator.rb, line 49 def respond_to?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end
Calls superclass method
# File rspec-expectations/lib/rspec/matchers/matcher_delegator.rb, line 44 def respond_to_missing?(name, include_all=false) super || base_matcher.respond_to?(name, include_all) end