dump

dump() Instance Public methods

inspect

inspect() Instance Public methods Returns a string like 'Post(id:integer, title:string, body:text)'

to_default_s

to_default_s(format = :default) Instance Public methods Alias for: to_s

gem_file_list

gem_file_list() Instance Public methods List of gem file names to index.

configurations=

configurations=(config) Class Public methods :singleton-method: Contains the database configuration - as is typically stored in config/database.yml - as a Hash. For example, the following database.yml⦠development: adapter: sqlite3 database: db/development.sqlite3 production: adapter: sqlite3 database: db/production.sqlite3 â¦would result in ::configurations to look like this: { 'development' => { 'adapter' => 'sqlite3', 'database' => 'db/developm

colorize

colorize(num) Instance Public methods

first?

first?() Instance Public methods first? is a predicate to test the call is a first call to first? with current group. It is useful to format comma separated values as: q.group(1, '[', ']') { xxx.each {|yyy| unless q.first? q.text ',' q.breakable end ... pretty printing yyy ... } } first? is obsoleted in 1.8.2.

==

big == obj â true or false Instance Public methods Returns true only if obj has the same value as big. Contrast this with Bignum#eql?, which requires obj to be a Bignum. 68719476736 == 68719476736.0 #=> true

months_ago

months_ago(months) Instance Public methods Returns a new date/time the specified number of months ago.

_get_variable2

_get_variable2(var, idx, flag) Class Public methods