Ruby Tutorial – Everything is an Object

Problem Statement

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.

Solution

  
# Enter your code here. Read input from STDIN. Print output to STDOUT
print self

Leave a Reply