Class: ActionView::Resolver
- Inherits:
-
Object
- Object
- ActionView::Resolver
- Defined in:
- actionpack/lib/action_view/template/resolver.rb
Overview
Action View Resolver
Instance Method Summary (collapse)
- - (Object) clear_cache
-
- (Object) find_all(name, prefix = nil, partial = false, details = {}, key = nil)
Normalizes the arguments and passes it on to find_template.
-
- (Resolver) initialize
constructor
A new instance of Resolver.
Constructor Details
- (Resolver) initialize
A new instance of Resolver
8 9 10 11 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 8 def initialize @cached = Hash.new { |h1,k1| h1[k1] = Hash.new { |h2,k2| h2[k2] = Hash.new { |h3, k3| h3[k3] = {} } } } end |
Instance Method Details
- (Object) clear_cache
13 14 15 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 13 def clear_cache @cached.clear end |
- (Object) find_all(name, prefix = nil, partial = false, details = {}, key = nil)
Normalizes the arguments and passes it on to find_template.
18 19 20 21 22 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 18 def find_all(name, prefix=nil, partial=false, details={}, key=nil) cached(key, prefix, name, partial) do find_templates(name, prefix, partial, details) end end |