Class: Super::Layout
- Inherits:
-
Object
- Object
- Super::Layout
- Defined in:
- lib/super/layout.rb
Instance Attribute Summary collapse
-
#asides ⇒ Object
readonly
Returns the value of attribute asides.
-
#footers ⇒ Object
readonly
Returns the value of attribute footers.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#mains ⇒ Object
readonly
Returns the value of attribute mains.
Instance Method Summary collapse
-
#initialize(headers: nil, asides: nil, mains: nil, footers: nil) ⇒ Layout
constructor
A new instance of Layout.
- #to_partial_path ⇒ Object
Constructor Details
#initialize(headers: nil, asides: nil, mains: nil, footers: nil) ⇒ Layout
Returns a new instance of Layout.
3 4 5 6 7 8 |
# File 'lib/super/layout.rb', line 3 def initialize(headers: nil, asides: nil, mains: nil, footers: nil) @headers = Array(headers).compact @asides = Array(asides).compact @mains = Array(mains).compact @footers = Array().compact end |
Instance Attribute Details
#asides ⇒ Object (readonly)
Returns the value of attribute asides.
11 12 13 |
# File 'lib/super/layout.rb', line 11 def asides @asides end |
#footers ⇒ Object (readonly)
Returns the value of attribute footers.
13 14 15 |
# File 'lib/super/layout.rb', line 13 def @footers end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/super/layout.rb', line 10 def headers @headers end |
#mains ⇒ Object (readonly)
Returns the value of attribute mains.
12 13 14 |
# File 'lib/super/layout.rb', line 12 def mains @mains end |
Instance Method Details
#to_partial_path ⇒ Object
15 16 17 |
# File 'lib/super/layout.rb', line 15 def to_partial_path "super_layout" end |