<p>Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).</p>

[{'answer_id': 35635, 'author': 'John Millikin', 'author_id': 3560, 'author_profile': 'https://Stackoverflow.com/users/3560', 'pm_score': 5, 'selected': True, 'text': '<p>Use <code>a.equal? b</code></p>\n\n<p><a href="http://www.ruby-doc.org/core/classes/Object.html" rel="noreferrer">http://www.ruby-doc.org/core/classes/Object.html</a></p>\n\n<blockquote>\n  <p>Unlike ==, the equal? method should never be overridden by subclasses: it is used to determine object identity (that is, a.equal?(b) iff a is the same object as b). </p>\n</blockquote>\n'}, {'answer_id': 39062, 'author': 'wvdschel', 'author_id': 2018, 'author_profile': 'https://Stackoverflow.com/users/2018', 'pm_score': 2, 'selected': False, 'text': "<p>You could also use <code>__id__</code>. This gives you the objects internal ID number, which is always unique. To check if to objects are the same, try</p>\n\n<blockquote>\n  <p><code>a.__id__ = b.__id__</code></p>\n</blockquote>\n\n<p>This is how Ruby's standard library does it as far as I can tell (see <code>group_by</code> and others).</p>\n"}]
['https://Stackoverflow.com/questions/35634', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3594/']