new 2

new(host, serv) Class Public methods

normalize

normalize(vec=None) Instance Public methods

set_cb_error

set_cb_error(cmd = Proc.new) Instance Public methods

cb_eval 2

cb_eval(cmd, *args) Instance Public methods def #cb_eval(cmd, *args) #self.eval_callback{ TkComm._get_eval_string(TkUtil.eval_cmd(cmd, *args)) } #ret = self.eval_callback{ TkComm._get_eval_string(TkUtil.eval_cmd(cmd, *args)) } ret = self.eval_callback(*args){|safe, *params| $SAFE=safe if $SAFE < safe TkComm._get_eval_string(TkUtil.eval_cmd(cmd, *params)) } if ret.kind_of?(Exception) raise ret end ret end

added?

added?(item) Instance Public methods Alias for: tag_has?

inspect

stat.inspect â string Instance Public methods Override the inspection method. system("false") p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"

share_stdio

share_stdio(dist, src = '') Class Public methods

sample

ary.sample â objary.sample(random: rng) â objary.sample(n) â new_aryary.sample(n, random: rng) â new_ary Instance Public methods Choose a random element or n random elements from the array. The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn't repeat itself unless the array already contained duplicate elements. If the array is empty the first form returns nil and the second form retu

call

call(env) Instance Public methods

find_by_sql

find_by_sql(sql, binds = []) Instance Public methods Executes a custom SQL query against your database and returns all the results. The results will be returned as an array with columns requested encapsulated as attributes of the model you call this method from. If you call Product.find_by_sql then the results will be returned in a Product object with the attributes you specified in the SQL query. If you call a complicated SQL query which spans multiple tables the columns specified