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

This class is the representation of a check box.

Methods

new   set  

Constants

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

Public Class methods

Public Instance methods

Set the checkbox to the given value.

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

[Validate]