123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Class Attribute Details

.caching? (rw)

Alias for .caching.

[ GitHub ]

  
# 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)

[ GitHub ]

  
# 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.

[ GitHub ]

  
# 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.

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# 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