Class: FormInputTag

Inherits:
REXML::Element
  • Object
show all
Defined in:
lib/ribit/xhtmltag.rb

Direct Known Subclasses

HiddenFormInputTag

Constant Summary collapse

TAG_NAME =
'input'
TYPE =
'type'
NAME =
'name'
VALUE =
'value'

Instance Method Summary collapse

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