dotconfig

dotconfig(series, key, value=None) Instance Public methods

add_extension_modules

add_extension_modules(out, type, extensions) Instance Public methods Adds a list of extensions to this module of the given type to out. #add_includes and #add_extends call this, so you should use those directly.

default_external

Encoding.default_external â enc Class Public methods Returns default external encoding. The default external encoding is used by default for strings created from the following locations: CSV File data read from disk SDBM StringIO Zlib::GzipReader Zlib::GzipWriter String#inspect Regexp#inspect While strings created from these locations will have this encoding, the encoding may not be valid. Be sure to check String#valid_encoding?. File data written to disk will b

select!

ary.select! {|item| block } â ary or nilary.select! â Enumerator Instance Public methods Invokes the given block passing in successive elements from self, deleting elements for which the block returns a false value. If changes were made, it will return self, otherwise it returns nil. See also #keep_if If no block is given, an Enumerator is returned instead.

exit 2

exit(st = true) Instance Public methods

swap

swap(target, *args, &block) Instance Public methods

exist?

exist?(*elems) Instance Public methods

underscore

underscore(camel_cased_word) Instance Public methods Makes an underscored, lowercase form from the expression in the string. Changes '::' to '/' to convert namespaces to paths. 'ActiveModel'.underscore # => "active_model" 'ActiveModel::Errors'.underscore # => "active_model/errors" As a rule of thumb you can think of underscore as the inverse of camelize, though there are cases where that does not hold: 'SSLError'.underscore.camelize # => "SslError"

parse

parse(date, now=self.now) Class Public methods Parses date using Date._parse and converts it to a Time object. If a block is given, the year described in date is converted by the block. For example: Time.parse(...) {|y| 0 <= y && y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y} If the upper components of the given time are broken or missing, they are supplied with those of now. For the lower components, the minimum values (1 or 0) are assumed if broken or missing.

exec_migration

exec_migration(conn, direction) Instance Public methods