lib/rspec/matchers/aliased_matcher.rb
# Forward messages on to the wrapped matcher.
# Since many matchers provide a fluent interface
# (e.g. `a_value_within(0.1).of(3)`), we need to wrap
# the returned value if it responds to `description`,
# so that our override can be applied when it is eventually
# used.
Forward messages on to the wrapped matcher.
Since many matchers provide a fluent interface
.of(3)`), we need to wrap
the returned value if it responds to `description`,
so that our override can be applied when it is eventually
used.
Forward messages on to the wrapped matcher . Since many matchers provide a fluent interface . of ( 3 ) ` ) we need to wrap the returned value if it responds to ` description ` so that our override can be applied when it is eventually used .
def method_missing(*)
        return_val = super
        return return_val unless RSpec::Matchers.is_a_matcher?(return_val)
        self.class.new(return_val, @description_block)
      end
def method_missing ( * ) return_val = super return return_val unless RSpec :: Matchers . is_a_matcher? ( return_val ) self . class . new ( return_val , @description_block ) end
Forward messages on to the wrapped matcher.
Forward messages on to the wrapped matcher .