Is there a method in Ruby that refers to the current instance of a class, in the way that self refers to the class itself?
self
The self reference is always available, and the object it points to depends on the context.
class Example self # refers to the Example class object def instance_method self # refers to the receiver of the :instance_method message end end