module Navy::SectionContainer
Attributes
block_args[RW]
Public Instance Methods
children?()
click to toggle source
# File lib/navy/section_container.rb, line 16 def children? @children.present? end
sections(context)
click to toggle source
# File lib/navy/section_container.rb, line 8 def sections(context) if children? SectionParser.new(context).parse(block_args || [], &@children).sections else [] end end