Skip to content

Posts tagged ‘self’

Love Your Self

Ruby’s Self

When you write ruby code, many times, the context in which your code is executed matters. This context will contain an assumption as to the default Object methods are being called on, self . Within a class definition, this is generally the class itself. Within an instance method definition, it is the instance of that class, etc.