class method self.new

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

self.new(path)

No documentation comment.

Parameters

path req
Source
# File actionpack/lib/action_view/template.rb, line 7
      def initialize(path)
        raise ArgumentError, "path already is a Path class" if path.is_a?(Path)
        @path = (path.ends_with?(File::SEPARATOR) ? path.to(-2) : path).freeze
      end

Defined in actionpack/lib/action_view/template.rb line 7 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Template::Path

Type at least 2 characters to search.

↑↓ navigate · open · esc close