Class: HakumiComponents::ColorPicker::PresetGroup
- Inherits:
-
Object
- Object
- HakumiComponents::ColorPicker::PresetGroup
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/color_picker/preset_group.rb
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
- #any_colors? ⇒ Boolean
-
#initialize(label:, colors:) ⇒ PresetGroup
constructor
A new instance of PresetGroup.
Constructor Details
#initialize(label:, colors:) ⇒ PresetGroup
Returns a new instance of PresetGroup.
10 11 12 13 |
# File 'app/components/hakumi_components/color_picker/preset_group.rb', line 10 def initialize(label:, colors:) @label = label @colors = colors end |
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
19 20 21 |
# File 'app/components/hakumi_components/color_picker/preset_group.rb', line 19 def colors @colors end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
16 17 18 |
# File 'app/components/hakumi_components/color_picker/preset_group.rb', line 16 def label @label end |
Instance Method Details
#any_colors? ⇒ Boolean
22 23 24 |
# File 'app/components/hakumi_components/color_picker/preset_group.rb', line 22 def any_colors? @colors.any? end |