Class: Formic::File
Instance Attribute Summary
Attributes inherited from Input
Attributes inherited from Base
#content, #options, #page, #template
Instance Method Summary collapse
-
#initialize(page, name = nil, options = {}, &block) ⇒ File
constructor
A new instance of File.
Methods inherited from Input
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, ={}, &block super self.[:type] = 'file' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Formic::Base