Class: Kiss::Form::BooleanField

Inherits:
RadioField show all
Defined in:
lib/kiss/form/field.rb

Constant Summary

Constants inherited from Field

Field::CURRENCY_SYMBOLS

Instance Method Summary collapse

Methods inherited from RadioField

#element_html, #elements_html

Methods inherited from MultiChoiceField

#column_layout, #display_to_s, #form=, #has_option_value?, #option_pairs, #options_keys, #other_field_html, #validate

Methods inherited from Field

#add_error, #content_tag_html, #debug, #element_html, #errors_html, #html, #input_tag_html, #method_missing, #param, #require_value, #reset, #set_value_to_hash, #set_value_to_object, #tag_html, #tag_start_html, #tip_html, #type, #validate, #value, #value_string, #value_to_s

Constructor Details

#initialize(*args, &block) ⇒ BooleanField

Returns a new instance of BooleanField.



632
633
634
635
# File 'lib/kiss/form/field.rb', line 632

def initialize(*args, &block)
  @_options = [[1, 'Yes'], [0, 'No']]
  super(*args, &block)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kiss::Form::Field