method
method_missing
1.1.4 -
Show latest stable
- Class:
Spec::Matchers
method_missing(sym, *args, &block)public
No documentation available.
# File lib/spec/matchers.rb, line 146
def method_missing(sym, *args, &block) # :nodoc:
return Matchers::Be.new(sym, *args) if sym.starts_with?("be_")
return Matchers::Has.new(sym, *args) if sym.starts_with?("have_")
super
end