Method: Primer::Forms::Dsl::RadioButtonInput#initialize

Defined in:
app/lib/primer/forms/dsl/radio_button_input.rb

#initialize(name:, value:, label:, **system_arguments) {|_self| ... } ⇒ RadioButtonInput

Returns a new instance of RadioButtonInput.

Yields:

  • (_self)

Yield Parameters:


10
11
12
13
14
15
16
17
18
# File 'app/lib/primer/forms/dsl/radio_button_input.rb', line 10

def initialize(name:, value:, label:, **system_arguments)
  @name = name
  @value = value
  @label = label

  super(**system_arguments)

  yield(self) if block_given?
end