Method: WrapIt::Sections::ClassMethods#placement
- Defined in:
- lib/wrap_it/sections.rb
#placement ⇒ Array<Symbol>
Retrieves section names in current order
126 127 128 129 130 131 132 133 134 |
# File 'lib/wrap_it/sections.rb', line 126 def placement @placement ||= if self == Base sections.clone else parent = ancestors[1..-1].find { |a| a.respond_to?(:placement) } parent.nil? ? sections.clone : parent.placement.clone end end |