class WebApp::HTMLFormQuery
HTMLFormQuery represents a query submitted by HTML form.
Public Class Methods
new(*args)
click to toggle source
# File webapp/htmlform.rb, line 67 def initialize(*args) @param = [] HTMLFormQuery.each_string_key_pair(args) {|key, val| @param << [key, val] } @param.freeze end
Public Instance Methods
[](key)
click to toggle source
# File webapp/htmlform.rb, line 81 def [](key) if pair = @param.assoc(key) return pair.last.dup end return nil end
each() { |dup, dup| ... }
click to toggle source
# File webapp/htmlform.rb, line 75 def each @param.each {|key, val| yield key.dup, val.dup } end
keys()
click to toggle source
# File webapp/htmlform.rb, line 96 def keys @param.map {|key, val| key }.uniq end
lookup_all(key)
click to toggle source
# File webapp/htmlform.rb, line 88 def lookup_all(key) result = [] @param.each {|k, val| result << val if k == key } return result end