You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Hackerrank Ruby Tutorial - Everything is an Object Solution

Hackerrank Ruby Tutorial - Everything is an Object Solution

Beeze Aal
Beeze Aal

Everything is an object in Ruby. For instance, if you type

print self

in the code-editor, Ruby treats self as the object in which it is currently referred to.

Give it a try!

Solution in ruby

print self