Class: Infold::RadioFieldsetComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/infold/radio_fieldset_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(form, field, list, checked_value = nil, required: false, label: true) ⇒ RadioFieldsetComponent

Returns a new instance of RadioFieldsetComponent.



4
5
6
7
8
9
10
11
# File 'app/components/infold/radio_fieldset_component.rb', line 4

def initialize(form, field, list, checked_value=nil,required:false,label:true)
  @form = form
  @field = field
  @list = list
  @checked_value = checked_value
  @required = required
  @label = label
end