Class: Hanami::Mailer::Rendering::TemplateName Private

Inherits:
Object
  • Object
show all
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

Since:

  • 0.1.0

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.

Since:

  • 0.1.0

"::"

Instance Method Summary collapse

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.

Since:

  • 0.1.0



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_sObject

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.

Since:

  • 0.1.0



26
27
28
# File 'lib/hanami/mailer/rendering/template_name.rb', line 26

def to_s
  @name
end