Skip to content

Instantly share code, notes, and snippets.

@banister
Created March 13, 2013 23:46
Show Gist options
  • Save banister/e3fcfc7177b5e03c33ed to your computer and use it in GitHub Desktop.
Save banister/e3fcfc7177b5e03c33ed to your computer and use it in GitHub Desktop.
Returns an integer identifier for <i>obj</i>. The same number will
be returned on all calls to <code>id</code> for a given object, and
no two active objects will share an id.
<code>Object#object_id</code> is a different concept from the
<code>:name</code> notation, which returns the symbol id of
<code>name</code>. Replaces the deprecated <code>Object#id</code>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment