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

doc_ruby_on_rails
2015-04-13 01:24:14
Comments
Leave a Comment

Please login to continue.