A resolver that loads files from the filesystem.
Methods
Attributes
[R] | path |
Class Public methods
new(path)
📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 96
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
🔎 See on GitHub
Instance Public methods
clear_cache()
📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 104
def clear_cache
@unbound_templates.clear
@path_parser = PathParser.new
super
end
🔎 See on GitHub
eql?(resolver)
Also aliased as: ==
📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 115
def eql?(resolver)
self.class.equal?(resolver.class) && to_path == resolver.to_path
end
🔎 See on GitHub
to_s()
Also aliased as: to_path
📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 110
def to_s
@path.to_s
end
🔎 See on GitHub