class ActionView::Template::Path

def self.new_and_loaded(path)

def self.new_and_loaded(path)
  returning new(path) do |path|
    path.load!
  end
end

def ==(path)

def ==(path)
  to_str == path.to_str
end

def [](path)

will never match +hello/index.html.erb+.
etc. A format must be supplied to match a formated file. +hello/index+
should not be confused with format extensions +html+, +js+, +xml+,
known template extension, +hello/index.html.erb+. Template extensions
+hello/index.html+ will match the first template it finds with a
match partial file names without a handler extension. So
+hello/index.html.erb+. This method also has a special exception to
input path should be relative to the view path directory,
Returns a ActionView::Template object for the given path string. The
def [](path)
end

def eql?(path)

def eql?(path)
  to_str == path.to_str
end

def initialize(path)

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

def load!

def load!
end

def relative_path_for_template_file(full_file_path)

def relative_path_for_template_file(full_file_path)
  full_file_path.split("#{@path}/").last
end

def to_s

def to_s
  if defined?(RAILS_ROOT)
    path.to_s.sub(/^#{Regexp.escape(File.expand_path(RAILS_ROOT))}\//, '')
  else
    path.to_s
  end
end

def to_str

def to_str
  path.to_str
end