Class: Formic::Checkbox

Inherits:
Input show all
Defined in:
lib/formic/checkbox.rb

Instance Attribute Summary

Attributes inherited from Input

#field

Attributes inherited from Base

#content, #options, #page, #template

Instance Method Summary collapse

Methods inherited from Input

#form, #label

Methods inherited from Base

#add_class, default_template, #formics, #has_class?, #initialize, #merge_options, #method_missing, template, #to_s

Constructor Details

This class inherits a constructor from Formic::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Formic::Base

Instance Method Details

#_initialize(name = nil, options = {}, &block) ⇒ Object



3
4
5
6
7
# File 'lib/formic/checkbox.rb', line 3

def _initialize name=nil, options={}, &block
  super
  self.options[:type] = 'checkbox'
  return self
end