Class: Kanso::FormFieldSkeletonComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Kanso::FormFieldSkeletonComponent
- Defined in:
- app/components/kanso/form_field_skeleton_component.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
-
#initialize(fields: 1) ⇒ FormFieldSkeletonComponent
constructor
A new instance of FormFieldSkeletonComponent.
Constructor Details
#initialize(fields: 1) ⇒ FormFieldSkeletonComponent
Returns a new instance of FormFieldSkeletonComponent.
7 8 9 |
# File 'app/components/kanso/form_field_skeleton_component.rb', line 7 def initialize(fields: 1) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
5 6 7 |
# File 'app/components/kanso/form_field_skeleton_component.rb', line 5 def fields @fields end |