set_backtrace

exc.set_backtrace(backtrace) â array Instance Public methods Sets the backtrace information associated with exc. The backtrace must be an array of String objects or a single String in the format described in #backtrace.

closest_point

closest_point() Instance Public methods

dlload

dlload(*libs) Instance Public methods Creates an array of handlers for the given libs, can be an instance of Fiddle::Handle, Fiddle::Importer, or will create a new istance of Fiddle::Handle using Fiddle.dlopen Raises a DLError if the library cannot be loaded. See Fiddle.dlopen

ctime

File.ctime(file_name) â time Class Public methods Returns the change time for the named file (the time at which directory information about the file was changed, not the file itself). file_name can be an IO object. Note that on Windows (NTFS), returns creation time (birth time). File.ctime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003

flock

file.flock(locking_constant) â 0 or false Instance Public methods Locks or unlocks a file according to locking_constant (a logical or of the values in the table below). Returns false if File::LOCK_NB is specified and the operation would otherwise have blocked. Not available on all platforms. Locking constants (in class File): LOCK_EX | Exclusive lock. Only one process may hold an | exclusive lock for a given file at a time. ----------+----------------------------------

fnmatch

File.fnmatch( pattern, path, [flags] ) â (true or false)File.fnmatch?( pattern, path, [flags] ) â (true or false) Class Public methods Returns true if path matches against pattern The pattern is not a regular expression; instead it follows rules similar to shell filename globbing. It may contain the following metacharacters: * Matches any file. Can be restricted by other values in the glob. * will match all files; c* will match all files beginning with c; *c will match all files

render

render(options = {}, locals = {}, &block) Instance Public methods Returns the result of a render that's dictated by the options hash. The primary options are: :partial - See ActionView::PartialRenderer. :file - Renders an explicit template file (this used to be the old default), add :locals to pass in those. :inline - Renders an inline template similar to how it's done in the controller. :text - Renders the text passed in out. :plain - Renders the text passed in out. S

constantize_agename

constantize_agename(name) Instance Public methods

post_form

post_form(url, params) Class Public methods Posts HTML form data to the specified URI object. The form data must be provided as a Hash mapping from String to String. Example: { "cmd" => "search", "q" => "ruby", "max" => "50" } This method also does Basic Authentication iff url.user exists. But userinfo for authentication is deprecated (RFC3986). So this feature will be removed. Example: require 'net/http' require 'uri' Net::HTTP.post_form URI('http://www.example.com/sear

day=

day=(value) Instance Public methods Set value as the new date/time component. Raises an ArgumentError if the given value isn't between 1 and 31.