Class: Satis::ColorPicker::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::ColorPicker::Component
- Defined in:
- app/components/satis/color_picker/component.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#css_scope ⇒ Object
readonly
Returns the value of attribute css_scope.
-
#css_variable ⇒ Object
readonly
Returns the value of attribute css_variable.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(attribute:, form: nil, css_variable: nil, css_scope: ":root") ⇒ Component
constructor
rubocop:disable Lint/MissingSuper.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(attribute:, form: nil, css_variable: nil, css_scope: ":root") ⇒ Component
rubocop:disable Lint/MissingSuper
8 9 10 11 12 13 |
# File 'app/components/satis/color_picker/component.rb', line 8 def initialize(attribute:, form: nil, css_variable: nil, css_scope: ":root") # rubocop:disable Lint/MissingSuper @form = form @attribute = attribute @css_variable = css_variable @css_scope = css_scope end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
6 7 8 |
# File 'app/components/satis/color_picker/component.rb', line 6 def attribute @attribute end |
#css_scope ⇒ Object (readonly)
Returns the value of attribute css_scope.
6 7 8 |
# File 'app/components/satis/color_picker/component.rb', line 6 def css_scope @css_scope end |
#css_variable ⇒ Object (readonly)
Returns the value of attribute css_variable.
6 7 8 |
# File 'app/components/satis/color_picker/component.rb', line 6 def css_variable @css_variable end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
6 7 8 |
# File 'app/components/satis/color_picker/component.rb', line 6 def form @form end |