eval

eval(topic, cmd, *args) Class Public methods

list

Thread.list â array Class Public methods Returns an array of Thread objects for all threads that are either runnable or stopped. Thread.new { sleep(200) } Thread.new { 1000000.times {|i| i*i } } Thread.new { Thread.stop } Thread.list.each {|t| p t} produces: #<Thread:0x401b3e84 sleep> #<Thread:0x401b3f38 run> #<Thread:0x401b3fb0 sleep> #<Thread:0x401bdf4c run>

to_r

rat.to_r â self Instance Public methods Returns self. Rational(2).to_r #=> (2/1) Rational(-8, 6).to_r #=> (-4/3)

write

write(object, attribute, key, value) Class Public methods

table_alias_length

table_alias_length() Instance Public methods Returns the configured supported identifier length supported by PostgreSQL

resolve

resolve(set=nil) Instance Public methods Resolve the requested dependencies and return an Array of Specification objects to be activated.

utc

utc() Instance Public methods Adjusts DateTime to UTC by adding its offset value; offset is set to 0. DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 +0000 getutc

logged

logged(level) Instance Public methods

selection_set

selection_set(*items) Instance Public methods

split

split(*args) Instance Public methods Works just like String#split, with the exception that the items in the resulting list are Chars instances instead of String. This makes chaining methods easier. 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÃL"]