Class: Hanami::View::Rendering::TemplateFinder Private
- Inherits:
-
TemplatesFinder
- Object
- TemplatesFinder
- Hanami::View::Rendering::TemplateFinder
- Defined in:
- lib/hanami/view/rendering/template_finder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Find a template for the current view context. It’s used when a template wants to render another template.
Direct Known Subclasses
Constant Summary
Constants inherited from TemplatesFinder
Hanami::View::Rendering::TemplatesFinder::ENGINES, Hanami::View::Rendering::TemplatesFinder::FORMAT, Hanami::View::Rendering::TemplatesFinder::RECURSIVE
Instance Method Summary collapse
-
#find ⇒ Hanami::View::Template
private
Find a template for the current view context.
-
#initialize(view, options) ⇒ TemplateFinder
constructor
private
Initialize a finder.
Constructor Details
#initialize(view, options) ⇒ TemplateFinder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a finder
24 25 26 27 |
# File 'lib/hanami/view/rendering/template_finder.rb', line 24 def initialize(view, ) super(view) @options = end |
Instance Method Details
#find ⇒ Hanami::View::Template
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Find a template for the current view context
38 39 40 |
# File 'lib/hanami/view/rendering/template_finder.rb', line 38 def find super.first end |