Sha256: 5a4996d432e1ad528d96509847c0d282953e80006a1447fe697c5ba42919aba8
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
module Voom module Presenters module DSL module Components class Footer < Base attr_accessor :footer_type, :menus def initialize(type: nil, **attribs_, &block) @footer_type = type || :small super(type: :footer, **attribs_, &block) @menus = [] expand! end def menu(title=nil, **attribs, &block) return @menus if locked? @menus << Menu.new(title,parent: self, **attribs, &block) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems