Class: Web::Unit::Input
Direct Known Subclasses
InputCheckbox, InputFile, InputImage, InputRadio, InputReset, InputSubmit
Instance Attribute Summary
Attributes inherited from Param
#name, #relations, #stat, #type, #value
Attributes inherited from HtmlElem
#array, #attrs, #children, #data, #name, #tag
Instance Method Summary collapse
-
#initialize(ah) ⇒ Input
constructor
A new instance of Input.
- #inspect ⇒ Object
- #off ⇒ Object
- #on ⇒ Object
Methods inherited from Param
#multipart_query_data, #query_data, #update
Methods inherited from HtmlElem
#append, #extract, #find, #has?, #print, #readlink, #search
Constructor Details
#initialize(ah) ⇒ Input
Returns a new instance of Input.
49 50 51 |
# File 'lib/web/unit/params.rb', line 49 def initialize( ah ) super( 'input', ah ) end |
Instance Method Details
#inspect ⇒ Object
61 62 63 |
# File 'lib/web/unit/params.rb', line 61 def inspect a = super + "[stat:#{@stat}]" end |
#off ⇒ Object
57 58 59 |
# File 'lib/web/unit/params.rb', line 57 def off @stat = 'off' end |
#on ⇒ Object
53 54 55 |
# File 'lib/web/unit/params.rb', line 53 def on @stat = 'on' end |