plotpack

plotpack(w, dir, *plots) Class Public methods

rfc3339 2

d.rfc3339 â string Instance Public methods This method is equivalent to strftime('%FT%T%:z').

norm

norm(fv,zero=0.0) Instance Public methods

configure

configure(*args) Class Public methods def configure(win, *args) if args[-1].kind_of?(Hash) opts = args.pop else opts = {} end params = [] params.push(_epath(win)) args.each{|win| case win when '-', 'x', '^' # RELATIVE PLACEMENT params.push(win) else params.push(_epath(win)) end } opts.each{|k, v| params.push("-#{k}") params.push((v.kind_of?(TkObject))? v.epath: v) } if Tk::TCL_MAJOR_VERSION < 8 || (Tk::TCL_MAJOR_VERSION == 8 && Tk::TCL_MINOR_

extract

extract(str, schemes = nil, &block) Class Public methods Synopsis URI::extract(str[, schemes][,&blk]) Args str String to extract URIs from. schemes Limit URI matching to a specific schemes. Description Extracts URIs from a string. If block given, iterates through all matched URIs. Returns nil if block given or array with matches. Usage require "uri" URI.extract("text here http://foo.example.org/bla and here mailto:test@example.com and here also.") # => ["http:

authenticate

authenticate(req, res) Instance Public methods Authenticates a req and returns a 401 Unauthorized using res if the authentication was not correct.

mutex

mutex() Instance Public methods

options_for_select

options_for_select(container, selected = nil) Instance Public methods Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container where the elements respond to first and last (such as a two-element array), the âlastsâ serve as option values and the âfirstsâ as option text. Hashes are turned into this form automatically, so the keys become âfirstsâ and values become lasts. If selected is specified, the matching âlastâ or element wi

full_name

full_name() Instance Public methods

read_timeout=

read_timeout=(sec) Instance Public methods Set the number of seconds to wait until timing-out a read(2) call.