Class: Super::Layout

Inherits:
Object
  • Object
show all
Defined in:
lib/super/layout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(footers).compact
end

Instance Attribute Details

#asidesObject (readonly)

Returns the value of attribute asides.



11
12
13
# File 'lib/super/layout.rb', line 11

def asides
  @asides
end

#footersObject (readonly)

Returns the value of attribute footers.



13
14
15
# File 'lib/super/layout.rb', line 13

def footers
  @footers
end

#headersObject (readonly)

Returns the value of attribute headers.



10
11
12
# File 'lib/super/layout.rb', line 10

def headers
  @headers
end

#mainsObject (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_pathObject



15
16
17
# File 'lib/super/layout.rb', line 15

def to_partial_path
  "super_layout"
end