Class: Clack::Core::GroupHeader
- Inherits:
-
Data
- Object
- Data
- Clack::Core::GroupHeader
- Defined in:
- lib/clack/core/options_helper.rb
Overview
Value objects for group_multiselect flat list (replaces :type discriminator hashes). GroupOption carries extra fields only used within GroupMultiselect for layout.
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label
22 23 24 |
# File 'lib/clack/core/options_helper.rb', line 22 def label @label end |
#options ⇒ Object (readonly)
Returns the value of attribute options
22 23 24 |
# File 'lib/clack/core/options_helper.rb', line 22 def @options end |
Instance Method Details
#[](key) ⇒ Object
23 |
# File 'lib/clack/core/options_helper.rb', line 23 def [](key) = to_h[key] |