一個解析器,可以從檔案系統中載入檔案。
方法
屬性
[R] | 路徑 |
類別公開方法
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?(解析器) 連結
別名為: ==
來源: 顯示 | 在 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