Class: Formic::File

Inherits:
Input show all
Defined in:
lib/formic/file.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

#_initialize, #form, #label

Methods inherited from Base

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

Constructor Details

#initialize(page, name = nil, options = {}, &block) ⇒ File

Returns a new instance of File.



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

def initialize page, name=nil, options={}, &block
  super
  self.options[:type] = 'file'
end

Dynamic Method Handling

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