Class: Hanami::View::Rendering::TemplateName Private

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

Since:

  • 0.2.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.2.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.2.0



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_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.2.0



22
23
24
# File 'lib/hanami/view/rendering/template_name.rb', line 22

def to_s
  @name
end