Method: ActionView::FileSystemResolver#initialize

Defined in:
actionview/lib/action_view/template/resolver.rb

#initialize(path) ⇒ FileSystemResolver

Returns a new instance of FileSystemResolver.

Raises:

  • (ArgumentError)


94
95
96
97
98
99
100
# File 'actionview/lib/action_view/template/resolver.rb', line 94

def initialize(path)
  raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver)
  @unbound_templates = Concurrent::Map.new
  @path_parser = PathParser.new
  @path = File.expand_path(path)
  super()
end