class Ariadne::Forms::Dsl::RadioButtonInput
:nodoc:
def initialize(name:, value:, label:, **options)
def initialize(name:, value:, label:, **options) @name = name @value = value @label = label super(**options) yield(self) if block_given? end
def nested_form(**system_arguments, &block)
def nested_form(**system_arguments, &block) @nested_form_arguments = system_arguments @nested_form_block = block end
def supports_validation?
def supports_validation? false end
def to_component
def to_component Ariadne::Form::RadioButton::Component.new(name:, value:, label:, **@options) end
def type
def type :radio_button end
def valid?
radio buttons cannot be invalid, as both selected and unselected are valid states
def valid? true end