new 2

new(*args, &block) Instance Public methods Initializes new record from relation while maintaining the current scope. Expects arguments in the same format as Base.new. users = User.where(name: 'DHH') user = users.new # => #<User id: nil, name: "DHH", created_at: nil, updated_at: nil> You can also pass a block to new with the new record as argument: user = users.new { |user| user.name = 'Oscar' } user.name # => Oscar build

setColor

setColor(w,button,name,options) Instance Public methods

set_numeric_type

set_numeric_type(val) Instance Public methods Also aliased as: numeric_type=

new

new(klass, table, values = {}) Class Public methods

hierarchical?

hierarchical?() Instance Public methods Checks if URI has a path

method_missing

method_missing(id, *args) Instance Public methods

sanitize_sql_for_conditions

sanitize_sql_for_conditions(condition, table_name = self.table_name) Instance Protected methods Accepts an array, hash, or string of SQL conditions and sanitizes them into a valid SQL fragment for a WHERE clause. ["name='%s' and group_id='%s'", "foo'bar", 4] returns "name='foo''bar' and group_id='4'" { name: "foo'bar", group_id: 4 } returns "name='foo''bar' and group_id='4'" "name='foo''bar' and group_id='4'" returns "name='foo''bar' and group_id='4'" sanitize_sql

[]

WIN32OLE_VARIANT[i,j,...] #=> element of OLE array. Instance Public methods Returns the element of WIN32OLE_VARIANT object(OLE array). This method is available only when the variant type of WIN32OLE_VARIANT object is VT_ARRAY. REMARK: The all indicies should be 0 or natural number and lower than or equal to max indicies. (This point is different with Ruby Array indicies.) obj = WIN32OLE_VARIANT.new([[1,2,3],[4,5,6]]) p obj[0,0] # => 1 p obj[1,0] # => 4 p obj[2,0] # =>

cget

cget(option) Instance Public methods Returns the current value of the configuration option given by option. Example, display name of the file from which image was created: puts image.cget :file

copy_string

copy_string(start_pos, end_pos) Instance Public methods Copies start_pos to end_pos from the current string