Class: Clack::Core::GroupHeader

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



22
23
24
# File 'lib/clack/core/options_helper.rb', line 22

def label
  @label
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



22
23
24
# File 'lib/clack/core/options_helper.rb', line 22

def options
  @options
end

Instance Method Details

#[](key) ⇒ Object



23
# File 'lib/clack/core/options_helper.rb', line 23

def [](key) = to_h[key]