Sha256: 91ba8ad90f351720a6af1f6da8117759fd0a4ded4434d91e7f2dc8e50476039e
Contents?: true
Size: 608 Bytes
Versions: 17
Compression:
Stored size: 608 Bytes
Contents
module KirguduBase module DynamicPages class MenuItemsBlockBuilder < ::KirguduBase::DynamicPages::Builder def initialize(&block) self.builder_options[:elements] = [] super(&block) end def menu_item(&block) self.builder_options[:elements] << ::KirguduBase::DynamicPages::MenuItemBuilder.new(&block).to_element end def item(&block) menu_item(&block) end def section(&block) self.builder_options[:elements] << ::KirguduBase::DynamicPages::MenuSectionBuilder.new(&block).to_element end def to_elements self.builder_options[:elements] end end end end
Version data entries
17 entries across 17 versions & 1 rubygems