Class: Zine::TemplateFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/zine/templates.rb

Overview

Trio of templates used to create a page

Instance Attribute Summary collapse

Instance Method Summary collapse

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, footer)
  @body = body
  @header = header
  @footer = footer
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/zine/templates.rb', line 4

def body
  @body
end

Returns the value of attribute footer.



5
6
7
# File 'lib/zine/templates.rb', line 5

def footer
  @footer
end

#headerObject (readonly)

Returns the value of attribute header.



6
7
8
# File 'lib/zine/templates.rb', line 6

def header
  @header
end