从文件系统加载文件的解析器。
方法
Attributes
| [R] | path |
类公共方法
new(path) 链接
来源: 显示 | 在 GitHub 上
# 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
实例公共方法
clear_cache() 链接
来源: 显示 | 在 GitHub 上
# File actionview/lib/action_view/template/resolver.rb, line 101 def clear_cache @unbound_templates.clear @path_parser = PathParser.new super end
eql?(resolver) 链接
也别名为: ==
来源: 显示 | 在 GitHub 上
# 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_s() 链接
也别名为: to_path
来源: 显示 | 在 GitHub 上
# File actionview/lib/action_view/template/resolver.rb, line 107 def to_s @path.to_s end