Class: ActionView::Resolver
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/resolver.rb |
Class Attribute Summary
Class Method Summary
- .caching (also: #caching, .caching?) rw
Instance Attribute Summary
- #caching rw
Instance Method Summary
- #caching? ⇒ Boolean rw
- #clear_cache
-
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
Normalizes the arguments and passes it on to find_templates.
- #_find_all(name, prefix, partial, details, key, locals) private
-
#find_templates(name, prefix, partial, details, locals = [])
private
This is what child classes implement.
- #all_template_paths Internal use only
- #built_templates Internal use only
Class Attribute Details
.caching? (rw)
Alias for .caching.
# File 'actionview/lib/action_view/template/resolver.rb', line 53
alias :caching? :caching
Class Method Details
.caching (rw) Also known as: #caching, .caching?
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 50
cattr_accessor :caching, default: true
Instance Attribute Details
#caching (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 50
cattr_accessor :caching, default: true
Instance Method Details
#_find_all(name, prefix, partial, details, key, locals) (private)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 75
def _find_all(name, prefix, partial, details, key, locals) find_templates(name, prefix, partial, details, locals) end
#all_template_paths
This method is for internal use only.
[ GitHub ]
# File 'actionview/lib/action_view/template/resolver.rb', line 69
def all_template_paths # :nodoc: # Not implemented by default [] end
#built_templates
This method is for internal use only.
[ GitHub ]
# File 'actionview/lib/action_view/template/resolver.rb', line 64
def built_templates # :nodoc: # Used for error pages [] end
#caching? ⇒ Boolean
(rw)
# File 'actionview/lib/action_view/template/resolver.rb', line 79
delegate :caching?, to: :class
#clear_cache
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 56
def clear_cache end
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
Normalizes the arguments and passes it on to find_templates.
# File 'actionview/lib/action_view/template/resolver.rb', line 60
def find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) _find_all(name, prefix, partial, details, key, locals) end
#find_templates(name, prefix, partial, details, locals = []) (private)
This is what child classes implement. No defaults are needed because Resolver
guarantees that the arguments are present and normalized.
# File 'actionview/lib/action_view/template/resolver.rb', line 84
def find_templates(name, prefix, partial, details, locals = []) raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, locals = []) method" end