Class: Hanami::Mailer::Rendering::TemplateName Private
- Inherits:
-
Object
- Object
- Hanami::Mailer::Rendering::TemplateName
- Defined in:
- lib/hanami/mailer/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.
TODO this is identical to Hanami::View, consider to move into Hanami::Utils
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.
"::"
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.
19 20 21 22 |
# File 'lib/hanami/mailer/rendering/template_name.rb', line 19 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.
26 27 28 |
# File 'lib/hanami/mailer/rendering/template_name.rb', line 26 def to_s @name end |