token_windowconfiginfo

token_windowconfiginfo(win, slot=nil) Class Public methods

timeout

timeout(sec, klass = nil) Class Public methods Perform an operation in a block, raising an error if it takes longer than sec seconds to complete. sec Number of seconds to wait for the block to terminate. Any number may be used, including Floats to specify fractional seconds. A value of 0 or nil will execute the block without any timeout. klass Exception Class to raise if the block fails to terminate in sec seconds. Omitting will use the default, Timeout::Error Returns the

look

look(exhibits) Class 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_

assert_no_emails

assert_no_emails(&block) Instance Public methods Assert that no emails have been sent. def test_emails assert_no_emails ContactMailer.welcome.deliver assert_emails 1 end If a block is passed, that block should not cause any emails to be sent. def test_emails_again assert_no_emails do # No emails should be sent from this block end end Note: This assertion is simply a shortcut for: assert_emails 0

motion1

motion1(w, x, y) Class Public methods

render_to_string_with_partial

render_to_string_with_partial() Instance Public methods

current_section

current_section() Instance Public methods The current documentation section that new items will be added to. If #temporary_section is available it will be used.

sort_obj

sort_obj() Instance Public methods Returns an object you can use to sort specifications in sort_by.

mv

mv() Instance Public methods Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. ruby -run -e mv -- [OPTION] SOURCE DEST -v verbose