inspect() Instance Public methods Also aliased as: default_inspect
axis_use(id, target=nil) Instance Public methods
get(*index) Instance Public methods
display_errors() Instance Protected methods
atomic_write(file_name, temp_dir = Dir.tmpdir) Class Public methods Write to a file atomically. Useful for situations where you don't want other processes or threads to see half-written files. File.atomic_write('important.file') do |file| file.write('hello') end If your temp directory is not on the same filesystem as the file you're trying to write, you can provide a different temporary directory. File.atomic_write('/data/something.important', '/data/tmp') do |file| file.write
content_type() Instance Public methods
values_at(*indices_or_headers) Instance Public methods The mixed mode default is to treat a list of indices as row access, returning the rows indicated. Anything else is considered columnar access. For columnar access, the return set has an Array for each row with the values indicated by the headers in each Array. You can force column or row mode using #by_col!() or #by_row!(). You cannot mix column and row access.
ary.take(n) â new_ary Instance Public methods Returns first n elements from the array. If a negative number is given, raises an ArgumentError. See also #drop a = [1, 2, 3, 4, 5, 0] a.take(3) #=> [1, 2, 3]
show_help() Instance Public methods Display the help message for the command.
info(message)info(progname, &block) Instance Public methods Log an INFO message. message The message to log; does not need to be a String. progname In the block form, this is the progname to use in the log message. The default can be set with progname=. block Evaluates to the message to log. This is not evaluated unless the logger's level is sufficient to log the message. This allows you to create potentially expensive logging messages that are only called when the
Page 1793 of 2275