Currently I am reading
The Ruby Programming Language
self is a variable that points to the object whose scope the current code is in. You would use
self.something when calling a class method on that object.
For instance, if you had the following method:
class Foo def self.bar puts "Class method!" end end
You would call the
bar method by calling