Class: Juggalo::Page
- Inherits:
-
Object
- Object
- Juggalo::Page
- Defined in:
- lib/juggalo/page.rb
Defined Under Namespace
Classes: Loader
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(layout, loader) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(layout, loader) ⇒ Page
Returns a new instance of Page.
5 6 7 8 |
# File 'lib/juggalo/page.rb', line 5 def initialize(layout, loader) @layout = layout @loader = loader end |
Instance Attribute Details
#components ⇒ Object (readonly)
Returns the value of attribute components.
3 4 5 |
# File 'lib/juggalo/page.rb', line 3 def components @components end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
3 4 5 |
# File 'lib/juggalo/page.rb', line 3 def template @template end |
Instance Method Details
#compile ⇒ Object
10 11 12 13 |
# File 'lib/juggalo/page.rb', line 10 def compile @layout.regions = compose @layout.render end |