Class: Web::Unit::Input

Inherits:
Param show all
Defined in:
lib/web/unit/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.



49
50
51
# File 'lib/web/unit/params.rb', line 49

def initialize( ah )
  super( 'input', ah )
end

Instance Method Details

#inspectObject



61
62
63
# File 'lib/web/unit/params.rb', line 61

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

#offObject



57
58
59
# File 'lib/web/unit/params.rb', line 57

def off
  @stat = 'off'
end

#onObject



53
54
55
# File 'lib/web/unit/params.rb', line 53

def on
  @stat = 'on'
end