跳至內容 跳至搜尋

一個解析器,可以從檔案系統中載入檔案。

方法
#
C
E
N
T

屬性

[R] 路徑

類別公開方法

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

實例公開方法

==(解析器)

別名為: 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?(解析器)

別名為: ==
# 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