Class: Kanso::FormFieldSkeletonComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/kanso/form_field_skeleton_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (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