Class: Hanami::View::Rendering::TemplateName Private
- Inherits:
-
Object
- Object
- Hanami::View::Rendering::TemplateName
- Defined in:
- lib/hanami/view/rendering/template_name.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.
Constant Summary collapse
- NAMESPACE_SEPARATOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'::'.freeze
Instance Method Summary collapse
-
#initialize(name, namespace) ⇒ TemplateName
constructor
private
A new instance of TemplateName.
- #to_s ⇒ Object private
Constructor Details
#initialize(name, namespace) ⇒ TemplateName
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.
Returns a new instance of TemplateName.
15 16 17 18 |
# File 'lib/hanami/view/rendering/template_name.rb', line 15 def initialize(name, namespace) @name = name compile!(namespace) end |
Instance Method Details
#to_s ⇒ Object
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.
22 23 24 |
# File 'lib/hanami/view/rendering/template_name.rb', line 22 def to_s @name end |