gravity=

gravity=(direction) Instance Public methods

hscroll

hscroll(mode, wrap_mode="char") Instance Public methods

update

digest_obj.update(string) â digest_obj Instance Public methods Updates the digest using a given string and returns self. The update() method and the left-shift operator are overridden by each implementation subclass. (One should be an alias for the other)

each_value

hsh.each_value {| value | block } â hshhsh.each_value â an_enumerator Instance Public methods Calls block once for each key in hsh, passing the value as a parameter. If no block is given, an enumerator is returned instead. h = { "a" => 100, "b" => 200 } h.each_value {|value| puts value } produces: 100 200

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

sanitize_sql_hash_for_conditions

sanitize_sql_hash_for_conditions(attrs, default_table_name = self.table_name) Instance Protected methods Sanitizes a hash of attribute/value pairs into SQL conditions for a WHERE clause. { name: "foo'bar", group_id: 4 } # => "name='foo''bar' and group_id= 4" { status: nil, group_id: [1,2,3] } # => "status IS NULL and group_id IN (1,2,3)" { age: 13..18 } # => "age BETWEEN 13 AND 18" { 'other_records.id' => 7 } # => "`other_records`.`id` = 7" { other_records: {

hierarchical?

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