Ruby Tutorial - Everything is an Object

Ruby Tutorial - Everything is an Object
Ruby Tutorial - Everything is an Object



Problem


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 :-


1
2
3
# Enter your code here. Read input from STDIN. Print output to STDOUT
#Ruby Tutorial - Everything is an Object
print self





Disclaimer :-
the above hole problem statement is given by hackerrank.com but the solution is generated by the codeworld19 authority if any of the query regarding this post or website fill the following contact form thank you.

Next Post Previous Post
No Comment
Add Comment
comment url