method

new

rails latest stable - Class: ActionView::Template::Path

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

new(path)
public

No documentation available.

# 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