Parent

Class/Module Index [+]

Quicksearch

RSpec::Matchers::MatcherDelegator

Provides the necessary plumbing to wrap a matcher with a decorator. @private

Attributes

base_matcher[R]

Public Class Methods

new(base_matcher) click to toggle source
# File lib/rspec/matchers/matcher_delegator.rb, line 8
def initialize(base_matcher)
  @base_matcher = base_matcher
end

Public Instance Methods

initialize_copy(other) click to toggle source
# File lib/rspec/matchers/matcher_delegator.rb, line 26
def initialize_copy(other)
  @base_matcher = @base_matcher.clone
  super
end
method_missing(*args, &block) click to toggle source
# File lib/rspec/matchers/matcher_delegator.rb, line 12
def method_missing(*args, &block)
  base_matcher.__send__(*args, &block)
end
respond_to?(name, include_all=false) click to toggle source
# File lib/rspec/matchers/matcher_delegator.rb, line 21
def respond_to?(name, include_all=false)
  super || base_matcher.respond_to?(name, include_all)
end
respond_to_missing?(name, include_all=false) click to toggle source
# File lib/rspec/matchers/matcher_delegator.rb, line 17
def respond_to_missing?(name, include_all=false)
  super || base_matcher.respond_to?(name, include_all)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.