Class: Primer::Forms::RadioButtonGroup
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Primer::Forms::RadioButtonGroup
- Defined in:
- app/lib/primer/forms/radio_button_group.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(input:) ⇒ RadioButtonGroup
constructor
A new instance of RadioButtonGroup.
Methods inherited from BaseComponent
compile!, #content, #input?, #perform_render, #render?, #to_component, #type
Methods included from ActsAsComponent
#compile!, extended, #renders_templates
Methods included from ClassNameHelper
Constructor Details
#initialize(input:) ⇒ RadioButtonGroup
Returns a new instance of RadioButtonGroup.
9 10 11 12 13 |
# File 'app/lib/primer/forms/radio_button_group.rb', line 9 def initialize(input:) @input = input @input.add_label_classes("FormControl-label") Primer::Forms::Utils.classify(@input.input_arguments) end |