Class: Voom::Presenters::DSL::Components::Footer
- Defined in:
- lib/voom/presenters/dsl/components/footer.rb
Instance Attribute Summary collapse
-
#footer_type ⇒ Object
Returns the value of attribute footer_type.
-
#menus ⇒ Object
Returns the value of attribute menus.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(type: nil, **attribs_, &block) ⇒ Footer
constructor
A new instance of Footer.
- #menu(title = nil, **attribs, &block) ⇒ Object
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(type: nil, **attribs_, &block) ⇒ Footer
Returns a new instance of Footer.
8 9 10 11 12 13 |
# File 'lib/voom/presenters/dsl/components/footer.rb', line 8 def initialize(type: nil, **attribs_, &block) @footer_type = type || :small super(type: :footer, **attribs_, &block) @menus = [] end |
Instance Attribute Details
#footer_type ⇒ Object
Returns the value of attribute footer_type.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/footer.rb', line 6 def @footer_type end |
#menus ⇒ Object
Returns the value of attribute menus.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/footer.rb', line 6 def @menus end |