Parent

Namespace

Class Index [+]

Quicksearch

ActionView::Resolver

Action View Resolver

Public Class Methods

new() click to toggle source
    # File lib/action_view/template/resolver.rb, line 34
34:     def initialize
35:       @cached = Hash.new { |h1,k1| h1[k1] = Hash.new { |h2,k2|
36:         h2[k2] = Hash.new { |h3,k3| h3[k3] = Hash.new { |h4,k4| h4[k4] = {} } } } }
37:     end

Public Instance Methods

clear_cache() click to toggle source
    # File lib/action_view/template/resolver.rb, line 39
39:     def clear_cache
40:       @cached.clear
41:     end
find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[]) click to toggle source

Normalizes the arguments and passes it on to find_template.

    # File lib/action_view/template/resolver.rb, line 44
44:     def find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[])
45:       cached(key, [name, prefix, partial], details, locals) do
46:         find_templates(name, prefix, partial, details)
47:       end
48:     end

Private Instance Methods

build_path(name, prefix, partial) click to toggle source

Helpers that builds a path. Useful for building virtual paths.

    # File lib/action_view/template/resolver.rb, line 62
62:     def build_path(name, prefix, partial)
63:       Path.build(name, prefix, partial)
64:     end
find_templates(name, prefix, partial, details) click to toggle source

This is what child classes implement. No defaults are needed because Resolver guarantees that the arguments are present and normalized.

    # File lib/action_view/template/resolver.rb, line 57
57:     def find_templates(name, prefix, partial, details)
58:       raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details) method"
59:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.