Keywords change the implicit receiver

suggest change

When 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"

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents