Method: GOVUKDesignSystemFormBuilder::Containers::RadioButtonsFieldset#initialize

Defined in:
lib/govuk_design_system_formbuilder/containers/radio_buttons_fieldset.rb

#initialize(builder, object_name, attribute_name, hint:, legend:, caption:, inline:, small:, form_group:, **kwargs, &block) ⇒ RadioButtonsFieldset

Returns a new instance of RadioButtonsFieldset.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/govuk_design_system_formbuilder/containers/radio_buttons_fieldset.rb', line 7

def initialize(builder, object_name, attribute_name, hint:, legend:, caption:, inline:, small:, form_group:, **kwargs, &block)
  fail LocalJumpError, 'no block given' unless block_given?

  super(builder, object_name, attribute_name, &block)

  @inline          = inline
  @small           = small
  @legend          = legend
  @caption         = caption
  @hint            = hint
  @form_group      = form_group
  @html_attributes = kwargs
end