Class: WebUnit::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.
48 49 50 |
# File 'lib/webunit/params.rb', line 48 def initialize( ah ) super( 'input', ah ) end |
Instance Method Details
#inspect ⇒ Object
60 61 62 |
# File 'lib/webunit/params.rb', line 60 def inspect a = super + "[stat:#{@stat}]" end |
#off ⇒ Object
56 57 58 |
# File 'lib/webunit/params.rb', line 56 def off @stat = 'off' end |
#on ⇒ Object
52 53 54 |
# File 'lib/webunit/params.rb', line 52 def on @stat = 'on' end |