Class: Satis::InputArray::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::InputArray::Component
- Defined in:
- app/components/satis/input_array/component.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(form:, attribute:, **options) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(form:, attribute:, **options) ⇒ Component
Returns a new instance of Component.
8 9 10 11 12 13 14 15 |
# File 'app/components/satis/input_array/component.rb', line 8 def initialize(form:, attribute:, **) super @form = form @attribute = attribute @options = [:input_html] ||= {} end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
6 7 8 |
# File 'app/components/satis/input_array/component.rb', line 6 def attribute @attribute end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
6 7 8 |
# File 'app/components/satis/input_array/component.rb', line 6 def form @form end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'app/components/satis/input_array/component.rb', line 6 def @options end |