Class: Voom::Presenters::DSL::Components::UnorderedList
- Defined in:
- lib/voom/presenters/dsl/components/unordered_list.rb
Defined Under Namespace
Classes: ListItem
Instance Attribute Summary collapse
-
#list_items ⇒ Object
readonly
Returns the value of attribute list_items.
-
#list_style ⇒ Object
readonly
Returns the value of attribute list_style.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ UnorderedList
constructor
A new instance of UnorderedList.
- #list_item(text = 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(**attribs_, &block) ⇒ UnorderedList
Returns a new instance of UnorderedList.
9 10 11 12 13 14 |
# File 'lib/voom/presenters/dsl/components/unordered_list.rb', line 9 def initialize(**attribs_, &block) super(type: :unordered_list, **attribs_, &block) @list_style = attribs.delete(:list_style){ :disc } @list_items = [] end |
Instance Attribute Details
#list_items ⇒ Object (readonly)
Returns the value of attribute list_items.
7 8 9 |
# File 'lib/voom/presenters/dsl/components/unordered_list.rb', line 7 def list_items @list_items end |
#list_style ⇒ Object (readonly)
Returns the value of attribute list_style.
7 8 9 |
# File 'lib/voom/presenters/dsl/components/unordered_list.rb', line 7 def list_style @list_style end |