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

'::'.freeze

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



17
18
19
20
# File 'lib/hanami/mailer/rendering/template_name.rb', line 17

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



24
25
26
# File 'lib/hanami/mailer/rendering/template_name.rb', line 24

def to_s
  @name
end