instance method method_missing

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

method_missing(id, *args)

No documentation comment.

Parameters

id req
args rest
Source
# File railties/lib/rails/paths.rb, line 8
      def method_missing(id, *args)
        name = id.to_s

        if name =~ /^(.*)=$/ || args.any?
          @children[$1 || name] = Path.new(@root, *args)
        elsif path = @children[name]
          path
        else
          super
        end
      end

Defined in railties/lib/rails/paths.rb line 8 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Paths::PathParent

Type at least 2 characters to search.

↑↓ navigate · open · esc close