Methods

Class/Module Index [+]

Quicksearch

ActionView::Template::EagerPath

Public Class Methods

new(path) click to toggle source
# File lib/action_view/template.rb, line 60
def initialize(path)
  super
  @loaded = false
end

Public Instance Methods

[](path) click to toggle source
# File lib/action_view/template.rb, line 79
def [](path)
  load! unless @loaded
  @paths[path]
end
load!() click to toggle source
# File lib/action_view/template.rb, line 65
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.