Class: Hanami::View::Rendering::PartialFile Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/view/rendering/partial_file.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.7.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, format, template) ⇒ PartialFile

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 PartialFile.

Since:

  • 0.7.0



21
22
23
24
25
# File 'lib/hanami/view/rendering/partial_file.rb', line 21

def initialize(key, format, template)
  @key      = key
  @format   = format
  @template = template
end

Instance Attribute Details

#formatObject (readonly)

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.7.0



13
14
15
# File 'lib/hanami/view/rendering/partial_file.rb', line 13

def format
  @format
end

#keyObject (readonly)

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.7.0



9
10
11
# File 'lib/hanami/view/rendering/partial_file.rb', line 9

def key
  @key
end

#templateObject (readonly)

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.7.0



17
18
19
# File 'lib/hanami/view/rendering/partial_file.rb', line 17

def template
  @template
end