跳至内容 跳至搜索

从文件系统加载文件的解析器。

方法
#
C
E
N
T

属性

[R] path

类公共方法

new(path)

# File actionview/lib/action_view/template/resolver.rb, line 93
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

实例公共方法

==(resolver)

别名: eql?

clear_cache()

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

eql?(resolver)

也作为别名: ==
# File actionview/lib/action_view/template/resolver.rb, line 112
def eql?(resolver)
  self.class.equal?(resolver.class) && to_path == resolver.to_path
end

to_path()

别名: to_s

to_s()

也作为别名: to_path
# File actionview/lib/action_view/template/resolver.rb, line 107
def to_s
  @path.to_s
end