Class: ActionView::PathResolver

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

Overview

An abstract class that implements a Resolver with path semantics.

Direct Known Subclasses

FileSystemResolver, FixtureResolver, 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

#clear_cache, #find_all

Constructor Details

#initialize(pattern = nil) ⇒ PathResolver

Returns a new instance of PathResolver.



169
170
171
172
# File 'actionview/lib/action_view/template/resolver.rb', line 169

def initialize(pattern=nil)
  @pattern = pattern || DEFAULT_PATTERN
  super()
end