Class: MediumExport::Template
- Inherits:
-
Object
- Object
- MediumExport::Template
- Defined in:
- lib/middleman-medium_export/template.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(template_path:, template_position:) ⇒ Template
constructor
A new instance of Template.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/middleman-medium_export/template.rb', line 3 def path @path end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
3 4 5 |
# File 'lib/middleman-medium_export/template.rb', line 3 def position @position end |