W3cubDocs

/Ruby on Rails 7.0

class ActionView::FileSystemResolver

Parent:
ActionView::Resolver

A resolver that loads files from the filesystem.

Attributes

path[R]

Public Class Methods

new(path) Show source
# File actionview/lib/action_view/template/resolver.rb, line 90
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
Calls superclass method

Public Instance Methods

==(resolver)
Alias for: eql?
clear_cache() Show source
# File actionview/lib/action_view/template/resolver.rb, line 98
def clear_cache
  @unbound_templates.clear
  @path_parser = PathParser.new
  super
end
Calls superclass method ActionView::Resolver#clear_cache
eql?(resolver) Show source
# File actionview/lib/action_view/template/resolver.rb, line 109
def eql?(resolver)
  self.class.equal?(resolver.class) && to_path == resolver.to_path
end
Also aliased as: ==
to_path()
Alias for: to_s
to_s() Show source
# File actionview/lib/action_view/template/resolver.rb, line 104
def to_s
  @path.to_s
end
Also aliased as: to_path

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.