start_color

start_color() Class Public methods Initializes the color attributes, for terminals that support it. This must be called, in order to use color attributes. It is good practice to call it just after ::init_screen

to_s

to_s(p1 = v1, p2 = v2) Instance Public methods Alias for: export

await_commit

await_commit() Instance Public methods

random_number

random_number(n=0) Class Public methods ::random_number generates a random number. If a positive integer is given as n, ::random_number returns an integer: 0 <= ::random_number < n. p SecureRandom.random_number(100) #=> 15 p SecureRandom.random_number(100) #=> 88 If 0 is given or an argument is not given, ::random_number returns a float: 0.0 <= ::random_number < 1.0. p SecureRandom.random_number #=> 0.596506046187744 p SecureRandom.random_number #=> 0.35062

move18

move18(step = nil) Instance Public methods

inspect

inspect() Instance Public methods

bind

bind(*args) Instance Public methods forbid to change binding of @base frame

url_for

url_for(options = nil) Instance Public methods Generate a url based on the options provided, default_url_options and the routes defined in routes.rb. The following options are supported: :only_path - If true, the relative url is returned. Defaults to false. :protocol - The protocol to connect to. Defaults to 'http'. :host - Specifies the host the link should be targeted at. If :only_path is false, this option must be provided either explicitly, or via default_url_options. :s

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((win.kind_of?(TkObject))? win.epath: win) params.push(_epath(win)) args.each{|win| # params.push((win.kind_of?(TkObject))? win.epath: win) params.push(_epath(win)) } opts.each{|k, v| params.push("-#{k}") # params.push((v.kind_of?(TkObject))? v.epath: v) params.push(_epath(v)) } tk_call_without_enc("pack", 'configure',

hold

hold(win, keys={}) Class Public methods