accept

unixserver.accept => unixsocket Instance Public methods Accepts a new connection. It returns new UNIXSocket object. UNIXServer.open("/tmp/sock") {|serv| UNIXSocket.open("/tmp/sock") {|c| s = serv.accept s.puts "hi" s.close p c.read #=> "hi\n" } }

blt_table_configure

blt_table_configure(*args) Instance Public methods

info

info(win) Class Public methods

assert_difference

assert_difference(expression, difference = 1, message = nil, &block) Instance Public methods Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. assert_difference 'Article.count' do post :create, article: {...} end An arbitrary expression is passed in and evaluated. assert_difference 'assigns(:article).comments(:reload).size' do post :create, comment: {...} end An arbitrary positive or negative difference

package_version

package_version() Class Public methods

active_legend

active_legend(graph) Class Public methods

winfo_rgb

winfo_rgb(color) Instance Public methods

bind

bind(&block) Instance Public methods

spans

spans() Instance Public methods def set(*pairs) # idx, val, idx, val, ⦠OR [idx, val], [idx, val], ⦠if pairs[0].kind_of?(Array) # [idx, val], [idx, val], ... args = [] pairs.each{|idx, val| args << tagid(idx) << val } tk_send('set', *args) else # idx, val, idx, val, ... args = [] 0.step(pairs.size-1, 2){|i| args << tagid(pairs[i]) args << pairs[i+1] } tk_send('set', *args) end self end def #set_row(*pairs) if pairs[0].kind_of?(

save

save(*) Instance Public methods Saves the model. If the model is new a record gets created in the database, otherwise the existing record gets updated. By default, save always run validations. If any of them fail the action is cancelled and save returns false. However, if you supply validate: false, validations are bypassed altogether. See ActiveRecord::Validations for more information. There's a series of callbacks associated with save. If any of the before_* callbacks return fals