Class: BlockHTML::Form::Element::Input

Inherits:
BlockHTML::Form::Element show all
Defined in:
lib/block-html/form.rb

Instance Attribute Summary

Attributes inherited from BlockHTML

#parent

Instance Method Summary collapse

Methods inherited from BlockHTML

#<<, #_p, #doctype, #each, #empty?, #escaped_text, #form, #method_missing, #p, #path, #render, #root, #tag, #text, #to_s, #xml

Constructor Details

#initialize(model, attrs) ⇒ Input

Returns a new instance of Input.



92
93
94
95
# File 'lib/block-html/form.rb', line 92

def initialize(model, attrs)
  super(model, attrs)
  tag(:input, @attrs.merge(:id => @id, :value => @value))
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BlockHTML