Skip to Content Skip to Search

A resolver that loads files from the filesystem.

Methods
#
C
E
N
T

Attributes

[R] path

Class Public methods

new(path)

# 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

Instance Public methods

==(resolver)

Alias for: eql?

clear_cache()

# File actionview/lib/action_view/template/resolver.rb, line 102
def clear_cache
  @unbound_templates.clear
  @path_parser = PathParser.new
  super
end

eql?(resolver)

Also aliased as: ==
# File actionview/lib/action_view/template/resolver.rb, line 113
def eql?(resolver)
  self.class.equal?(resolver.class) && to_path == resolver.to_path
end

to_path()

Alias for: to_s

to_s()

Also aliased as: to_path
# File actionview/lib/action_view/template/resolver.rb, line 108
def to_s
  @path.to_s
end