method
new
v2.3.8 -
Show latest stable
- Class:
ActionView::Template::Path
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