Class: MediumExport::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-medium_export/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_path:, template_position:) ⇒ Template

Returns a new instance of Template.



5
6
7
8
# File 'lib/middleman-medium_export/template.rb', line 5

def initialize(template_path:, template_position:)
  @path = template_path
  @position = template_position.to_sym
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/middleman-medium_export/template.rb', line 3

def path
  @path
end

#positionObject (readonly)

Returns the value of attribute position.



3
4
5
# File 'lib/middleman-medium_export/template.rb', line 3

def position
  @position
end