Class: WebUnit::Input

Inherits:
Param show all
Defined in:
lib/webunit/params.rb

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

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

#inspectObject



60
61
62
# File 'lib/webunit/params.rb', line 60

def inspect
  a = super + "[stat:#{@stat}]"
end

#offObject



56
57
58
# File 'lib/webunit/params.rb', line 56

def off
  @stat = 'off'
end

#onObject



52
53
54
# File 'lib/webunit/params.rb', line 52

def on
  @stat = 'on'
end