Class: ActionView::Storybook::Controls::ColorConfig
- Inherits:
-
ControlConfig
- Object
- ControlConfig
- ActionView::Storybook::Controls::ColorConfig
- Defined in:
- lib/action_view/storybook/controls/color_config.rb
Instance Attribute Summary collapse
-
#preset_colors ⇒ Object
readonly
Returns the value of attribute preset_colors.
Attributes inherited from ControlConfig
Instance Method Summary collapse
-
#initialize(param, value, name: nil, preset_colors: nil) ⇒ ColorConfig
constructor
A new instance of ColorConfig.
- #type ⇒ Object
Methods inherited from ControlConfig
#to_csf_params, #value_from_param
Constructor Details
#initialize(param, value, name: nil, preset_colors: nil) ⇒ ColorConfig
Returns a new instance of ColorConfig.
9 10 11 12 |
# File 'lib/action_view/storybook/controls/color_config.rb', line 9 def initialize(param, value, name: nil, preset_colors: nil) super(param, value, name: name) @preset_colors = preset_colors end |
Instance Attribute Details
#preset_colors ⇒ Object (readonly)
Returns the value of attribute preset_colors.
7 8 9 |
# File 'lib/action_view/storybook/controls/color_config.rb', line 7 def preset_colors @preset_colors end |
Instance Method Details
#type ⇒ Object
14 15 16 |
# File 'lib/action_view/storybook/controls/color_config.rb', line 14 def type :color end |