Class: ActionView::Template::EagerPath
- Defined in:
- lib/action_view/template.rb
Instance Attribute Summary
Attributes inherited from Path
Instance Method Summary collapse
Methods inherited from Path
#==, #eql?, #initialize, new_and_loaded, #to_s, #to_str
Constructor Details
This class inherits a constructor from ActionView::Template::Path
Instance Method Details
#[](path) ⇒ Object
74 75 76 77 |
# File 'lib/action_view/template.rb', line 74 def [](path) load! unless @loaded @paths[path] end |
#load! ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/action_view/template.rb', line 60 def load! return if @loaded @paths = {} templates_in_path do |template| template.load! template.accessible_paths.each do |path| @paths[path] = template end end @paths.freeze @loaded = true end |