Class: Formic::Password

Inherits:
Input show all
Defined in:
lib/formic/password.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
8
# File 'lib/formic/password.rb', line 3

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