Class: Super::Layout
- Inherits:
-
Object
- Object
- Super::Layout
- Includes:
- Partial::Resolving
- Defined in:
- lib/super/layout.rb
Instance Attribute Summary collapse
-
#aside ⇒ Object
readonly
Returns the value of attribute aside.
-
#footer ⇒ Object
readonly
Returns the value of attribute footer.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#main ⇒ Object
readonly
Returns the value of attribute main.
Instance Method Summary collapse
-
#initialize(header: nil, aside: nil, main: nil, footer: nil) ⇒ Layout
constructor
A new instance of Layout.
- #to_partial_path ⇒ Object
Methods included from Partial::Resolving
Constructor Details
#initialize(header: nil, aside: nil, main: nil, footer: nil) ⇒ Layout
Returns a new instance of Layout.
9 10 11 12 13 14 |
# File 'lib/super/layout.rb', line 9 def initialize(header: nil, aside: nil, main: nil, footer: nil) @header = header @aside = aside @main = main @footer = end |
Instance Attribute Details
#aside ⇒ Object (readonly)
Returns the value of attribute aside.
17 18 19 |
# File 'lib/super/layout.rb', line 17 def aside @aside end |
#footer ⇒ Object (readonly)
Returns the value of attribute footer.
19 20 21 |
# File 'lib/super/layout.rb', line 19 def @footer end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
16 17 18 |
# File 'lib/super/layout.rb', line 16 def header @header end |
#main ⇒ Object (readonly)
Returns the value of attribute main.
18 19 20 |
# File 'lib/super/layout.rb', line 18 def main @main end |
Instance Method Details
#to_partial_path ⇒ Object
21 22 23 |
# File 'lib/super/layout.rb', line 21 def to_partial_path "layout" end |