method

method_missing

rspec latest stable - Class: Spec::Matchers
method_missing(sym, *args, &block)
public

No documentation available.

# File lib/spec/matchers/method_missing.rb, line 3
    def method_missing(sym, *args, &block) # :nodoc:
      return Matchers::BePredicate.new(sym, *args, &block) if sym.to_s =~ /^be_/
      return Matchers::Has.new(sym, *args, &block) if sym.to_s =~ /^have_/
      super
    end