method
parse
v7.1.3.4 -
Show latest stable
- Class:
ActionView::Resolver::PathParser
parse(path)public
No documentation available.
# File actionview/lib/action_view/template/resolver.rb, line 39
def parse(path)
@regex ||= build_path_regex
match = @regex.match(path)
path = TemplatePath.build(match[:action], match[:prefix] || "", !!match[:partial])
details = TemplateDetails.new(
match[:locale]&.to_sym,
match[:handler]&.to_sym,
match[:format]&.to_sym,
match[:variant]&.to_sym
)
ParsedPath.new(path, details)
end