dclone

dclone() Instance Public methods provides a unified clone operation, for REXML::XPathParser to use across multiple Object+ types

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

set 2

set(data, keys=nil) Instance Public methods

not

not(opts, *rest) Instance Public methods Returns a new relation expressing WHERE + NOT condition according to the conditions in the arguments. not accepts conditions as a string, array, or hash. See where for more details on each format. User.where.not("name = 'Jon'") # SELECT * FROM users WHERE NOT (name = 'Jon') User.where.not(["name = ?", "Jon"]) # SELECT * FROM users WHERE NOT (name = 'Jon') User.where.not(name: "Jon") # SELECT * FROM users WHERE name != 'Jon' User.where.not

lineno

strio.lineno â integer Instance Public methods Returns the current line number in strio. The stringio must be opened for reading. lineno counts the number of times gets is called, rather than the number of newlines encountered. The two values will differ if gets is called with a separator other than newline. See also the $. variable.

package_name

package_name() Class Public methods

build_app

build_app(routes = nil) Class Public methods

showMessageBox2

showMessageBox2(w) Instance Public methods

select

select(idx) Instance Public methods

each_codepoint

ios.each_codepoint {|c| block } â iosios.codepoints {|c| block } â iosios.each_codepoint â an_enumeratorios.codepoints â an_enumerator Instance Public methods Passes the Integer ordinal of each character in ios, passing the codepoint as an argument. The stream must be opened for reading or an IOError will be raised. If no block is given, an enumerator is returned instead.