Class Celerity::Radio
In: lib/celerity/elements/radio_check.rb
Parent: RadioCheckCommon

This class is the representation of a radio button.

Methods

new   set  

Constants

TAGS = [Identifier.new('input', :type => %w[radio])]

Public Class methods

Public Instance methods

Set the radio button to the given value.

  radio.set?        #=> false
  radio.set
  radio.set?        #=> true
  radio.set(false)
  radio.set?        #=> false

[Validate]