Sha256: 688c2f6299c6c746f64506177ff9d893273a71d6bb1ee0980d92fb7a35130f47
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 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 = h(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voom-presenters-0.2.0 | lib/voom/presenters/dsl/components/footer.rb |