Flowdock
method

method_missing

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: NilClass
method_missing(method, *args, &block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
        raise NoMethodError, "undefined method `#{method}' for nil:NilClass"
      elsif klass = METHOD_CLASS_MAP[method]
        raise_nil_warning_for klass, method, caller
      else
        super
      end
    end
Register or log in to add new notes.