123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Matchers::BaseDelegator Private

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
RSpec::Expectations::LegacyMatcherAdapter, RSpec::Matchers::AliasedMatcher, RSpec::Matchers::AliasedMatcherWithOperatorSupport, RSpec::Matchers::AliasedNegatedMatcher, RSpec::Matchers::MatcherDelegator, RSpec::Expectations::LegacyMatcherAdapter::RSpec1, RSpec::Expectations::LegacyMatcherAdapter::RSpec2
Inherits: Object
Defined in: rspec-expectations/lib/rspec/matchers/matcher_delegator.rb

Overview

Provides a base class with as little methods as possible, so that most methods can be delegated via ‘method_missing`.

On Ruby 2.0+ ::BasicObject could be used for this purpose, but it introduce some extra complexity with constant resolution, so the BlankSlate pattern was prefered.