instance method method_missing

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v3.0.20 Private

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

method_missing(method, *args, &block)

No documentation comment.

Parameters

method req
args rest
block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close