Method: Primer::Forms::Dsl::CheckBoxGroupInput#initialize

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

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

Returns a new instance of CheckBoxGroupInput.

Yields:

  • (_self)

Yield Parameters:


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

def initialize(name: nil, label: nil, **system_arguments)
  @name = name
  @label = label
  @check_boxes = []

  super(**system_arguments)

  yield(self) if block_given?
end