Class: FormInputTag
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- FormInputTag
- Defined in:
- lib/ribit/xhtmltag.rb
Direct Known Subclasses
Constant Summary collapse
- TAG_NAME =
'input'- TYPE =
'type'- NAME =
'name'- VALUE =
'value'
Instance Method Summary collapse
-
#initialize(type = nil, name = nil, value = nil) ⇒ FormInputTag
constructor
A new instance of FormInputTag.
Constructor Details
#initialize(type = nil, name = nil, value = nil) ⇒ FormInputTag
Returns a new instance of FormInputTag.
77 78 79 80 81 82 |
# File 'lib/ribit/xhtmltag.rb', line 77 def initialize( type=nil, name=nil, value=nil ) super( TAG_NAME ) attributes[TYPE] = type attributes[NAME] = name attributes[VALUE] = value end |