_curr_cmd_id

_curr_cmd_id() Class Public methods ### â> definition is moved to TkUtil module def _get_eval_string(str, enc_mode = nil) return nil if str == None if str.kind_of?(TkObject) str = str.path elsif str.kind_of?(String) str = _toUTF8(str) if enc_mode elsif str.kind_of?(Symbol) str = str.id2name str = _toUTF8(str) if enc_mode elsif str.kind_of?(Hash) str = hash_kv(str, enc_mode).join(" ") elsif str.kind_of?(Array) str = array2tk_list(str) str = _toUTF8(str) if enc_mode

zip

ary.zip(arg, ...) â new_aryary.zip(arg, ...) { |arr| block } â nil Instance Public methods Converts any arguments to arrays, then merges elements of self with corresponding elements from each argument. This generates a sequence of ary.size n-element arrays, where n is one more than the count of arguments. If the size of any argument is less than the size of the initial array, nil values are supplied. If a block is given, it is invoked for each output array, other

bind_remove_all

bind_remove_all(context) Instance Public methods

unix?

addrinfo.unix? => true or false Instance Public methods returns true if addrinfo is UNIX address. returns false otherwise. Addrinfo.tcp("127.0.0.1", 80).unix? #=> false Addrinfo.tcp("::1", 80).unix? #=> false Addrinfo.unix("/tmp/sock").unix? #=> true

reset

digest_obj.reset â digest_obj Instance Public methods Resets the digest to the initial state and returns self.

root

root() Instance Public methods

item_hasbutton

item_hasbutton(item, st=None) Instance Public methods Also aliased as: item_has_button

cache_fragment_name

cache_fragment_name(name = {}, options = nil) Instance Public methods This helper returns the name of a cache key for a given fragment cache call. By supplying skip_digest: true to cache, the digestion of cache fragments can be manually bypassed. This is useful when cache fragments cannot be manually expired unless you know the exact key which is the case when using memcached.

delete_all

delete_all(conditions = nil) Instance Public methods Deletes the records matching conditions without instantiating the records first, and hence not calling the destroy method nor invoking callbacks. This is a single SQL DELETE statement that goes straight to the database, much more efficient than destroy_all. Be careful with relations though, in particular :dependent rules defined on associations are not honored. Returns the number of rows affected. Post.delete_all("person_id = 5 A

read 2

ios.read([length [, outbuf]]) â string, outbuf, or nil Instance Public methods Reads length bytes from the I/O stream. length must be a non-negative integer or nil. If length is a positive integer, it try to read length bytes without any conversion (binary mode). It returns nil or a string whose length is 1 to length bytes. nil means it met EOF at beginning. The 1 to length-1 bytes string means it met EOF after reading the result. The length bytes string means it doesn't meet E