Class

Object

Extends:

Includes:

Same as above, except in Object.

Modules
InstanceExecMethods
Aliases
blank_slate_method_added
load_without_new_constant_marking
send! Anticipating Ruby 1.9 neutering send
Public Methods
` Makes backticks behave (somewhat more) similarly on all platforms. On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the spawned shell prints a message to stderr and sets $?. We emulate Unix on the former but not the latter.
acts_like? A duck-type assistant method. For example, ActiveSupport extends Date to define an acts_like_date? method, and extends Time to define acts_like_time?. As a result, we can do "x.acts_like?(:time)" and "x.acts_like?(:date)" to do duck-type-safe comparisons, since classes that we want to act like Time simply need to define an acts_like_time? method.
blank? An object is blank if it’s nil, empty, or a whitespace string. For example, "", " ", nil, [], and {} are blank.
copy_instance_variables_from
duplicable? Can you safely .dup this object? False for nil, false, true, symbols, and numbers; true otherwise.
extend_with_included_modules_from
extended_by
find_hidden_method
instance_exec Evaluate the block with the given arguments within the context of this object, so self is set to the method receiver.
instance_values
instance_variable_defined?
load
method_added Detect method additions to Object and remove them in the BlankSlate class.
remove_subclasses_of
require
returning A Ruby-ized realization of the K combinator, courtesy of Mikael Brockman.
subclasses_of
to_json Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
to_param Alias of to_s.
to_query Converts an object into a string suitable for use as a URL query string, using the given key as the param name.
unloadable Mark the given constant as unloadable. Unloadable constants are removed each time dependencies are cleared.
with_options An elegant way to refactor out common options
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.