Class: Zine::TemplateFiles
- Inherits:
-
Object
- Object
- Zine::TemplateFiles
- Defined in:
- lib/zine/templates.rb
Overview
Trio of templates used to create a page
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#footer ⇒ Object
readonly
Returns the value of attribute footer.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(body, header, footer) ⇒ TemplateFiles
constructor
A new instance of TemplateFiles.
Constructor Details
#initialize(body, header, footer) ⇒ TemplateFiles
Returns a new instance of TemplateFiles.
8 9 10 11 12 |
# File 'lib/zine/templates.rb', line 8 def initialize(body, header, ) @body = body @header = header @footer = end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/zine/templates.rb', line 6 def body @body end |
#footer ⇒ Object (readonly)
Returns the value of attribute footer.
6 7 8 |
# File 'lib/zine/templates.rb', line 6 def @footer end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
6 7 8 |
# File 'lib/zine/templates.rb', line 6 def header @header end |