Class: ActionView::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/template/resolver.rb

Overview

Action View Resolver

Direct Known Subclasses

PathResolver

Defined Under Namespace

Classes: Cache, Path

Instance Method Summary collapse

Constructor Details

#initializeResolver

Returns a new instance of Resolver.



104
105
106
# File 'lib/action_view/template/resolver.rb', line 104

def initialize
  @cache = Cache.new
end

Instance Method Details

#clear_cacheObject



108
109
110
# File 'lib/action_view/template/resolver.rb', line 108

def clear_cache
  @cache.clear
end

#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) ⇒ Object

Normalizes the arguments and passes it on to find_templates.



113
114
115
116
117
# File 'lib/action_view/template/resolver.rb', line 113

def find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[])
  cached(key, [name, prefix, partial], details, locals) do
    find_templates(name, prefix, partial, details)
  end
end