Methods
Public Class methods
[ show source ]
# File actionpack/lib/action_view/template.rb, line 60
60: def initialize(path)
61: super
62: @loaded = false
63: end
Public Instance methods
[ show source ]
# File actionpack/lib/action_view/template.rb, line 79
79: def [](path)
80: load! unless @loaded
81: @paths[path]
82: end
[ show source ]
# File actionpack/lib/action_view/template.rb, line 65
65: def load!
66: return if @loaded
67:
68: @paths = {}
69: templates_in_path do |template|
70: template.load!
71: template.accessible_paths.each do |path|
72: @paths[path] = template
73: end
74: end
75: @paths.freeze
76: @loaded = true
77: end