instance method
method_missing
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.0.20 PrivateSignature
method_missing(method, *args, &block)
No documentation comment.
Parameters
-
methodreq -
argsrest -
blockblock
Source
# File activesupport/lib/active_support/whiny_nil.rb, line 45
def method_missing(method, *args, &block)
# Ruby 1.9.2: disallow explicit coercion via method_missing.
if method == :to_ary || method == :to_str
super
elsif klass = METHOD_CLASS_MAP[method]
raise_nil_warning_for klass, method, caller
else
super
end
end
Defined in activesupport/lib/active_support/whiny_nil.rb line 45
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NilClass