Keywords change the implicit receiver
suggest changeWhen you define a class or module, the implicit receiver becomes a reference to the class itself. For example:
puts "I am #{self}"
class Example
puts "I am #{self}"
end
Executing the above code will print:
"I am main"
"I am Example"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents