Class: HakumiComponents::SelectionControl::OptionGroup
- Inherits:
-
Object
- Object
- HakumiComponents::SelectionControl::OptionGroup
- Extended by:
- T::Sig
- Includes:
- Entry
- Defined in:
- app/components/hakumi_components/selection_control/option_group.rb
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
- #group? ⇒ Boolean
-
#initialize(label:, options:) ⇒ OptionGroup
constructor
A new instance of OptionGroup.
- #option? ⇒ Boolean
Constructor Details
#initialize(label:, options:) ⇒ OptionGroup
Returns a new instance of OptionGroup.
12 13 14 15 |
# File 'app/components/hakumi_components/selection_control/option_group.rb', line 12 def initialize(label:, options:) @label = label @options = end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
28 29 30 |
# File 'app/components/hakumi_components/selection_control/option_group.rb', line 28 def label @label end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
31 32 33 |
# File 'app/components/hakumi_components/selection_control/option_group.rb', line 31 def @options end |
Instance Method Details
#group? ⇒ Boolean
23 24 25 |
# File 'app/components/hakumi_components/selection_control/option_group.rb', line 23 def group? true end |
#option? ⇒ Boolean
18 19 20 |
# File 'app/components/hakumi_components/selection_control/option_group.rb', line 18 def option? false end |