Class: BlockHTML::Form::Element::Button
- Inherits:
-
BlockHTML::Form::Element
- Object
- BlockHTML
- BlockHTML::Form::Element
- BlockHTML::Form::Element::Button
- Defined in:
- lib/block-html/form.rb
Instance Attribute Summary
Attributes inherited from BlockHTML
Instance Method Summary collapse
-
#initialize(model, attrs) ⇒ Button
constructor
A new instance of Button.
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) ⇒ Button
Returns a new instance of Button.
99 100 101 102 |
# File 'lib/block-html/form.rb', line 99 def initialize(model, attrs) super(model, attrs) tag(:input, @attrs.merge(:id => @id, :value => @value || @name)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BlockHTML