Method: RSpec::Matchers#method_missing

Defined in:
lib/rspec/matchers.rb

#method_missing(method, *args, &block) ⇒ Object (private)



961
962
963
964
965
966
967
968
969
970
# File 'lib/rspec/matchers.rb', line 961

def method_missing(method, *args, &block)
  case method.to_s
  when BE_PREDICATE_REGEX
    BuiltIn::BePredicate.new(method, *args, &block)
  when HAS_REGEX
    BuiltIn::Has.new(method, *args, &block)
  else
    super
  end
end