Class: RSpec::Matchers::MatcherDelegator

Inherits:
Object
  • Object
show all
Includes:
Composable
Defined in:
lib/rspec/matchers/matcher_delegator.rb

Overview

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

Direct Known Subclasses

AliasedMatcher

Method Summary

Methods included from Composable

#===, #and, #description_of, #or, should_enumerate?, surface_descriptions_in, unreadable_io?, #values_match?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



13
14
15
# File 'lib/rspec/matchers/matcher_delegator.rb', line 13

def method_missing(*args, &block)
  base_matcher.__send__(*args, &block)
end