Class: ActionView::PathResolver

Inherits:
Resolver
  • Object
show all
Defined in:
lib/action_view/template/resolver.rb

Overview

An abstract class that implements a Resolver with path semantics.

Direct Known Subclasses

FileSystemResolver, NullResolver

Constant Summary collapse

EXTENSIONS =

:nodoc:

{ locale: ".", formats: ".", variants: "+", handlers: "." }
DEFAULT_PATTERN =
":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}"

Instance Method Summary collapse

Methods inherited from Resolver

#find_all, #find_all_with_query

Constructor Details

#initializePathResolver

Returns a new instance of PathResolver.



199
200
201
202
203
204
# File 'lib/action_view/template/resolver.rb', line 199

def initialize
  @pattern = DEFAULT_PATTERN
  @unbound_templates = Concurrent::Map.new
  @path_parser = PathParser.new
  super
end

Instance Method Details

#clear_cacheObject



206
207
208
209
210
# File 'lib/action_view/template/resolver.rb', line 206

def clear_cache
  @unbound_templates.clear
  @path_parser = PathParser.new
  super
end