Skip to content
the poor coder

Hackerrank Ruby Tutorial - Everything is an Object Solution

Poor Man
Published
Updated
Reading time
1 min read

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#

Python
print self

Keep going

2020

Hackerrank Lazy Evaluation Solution

Lazy evaluation is an evaluation strategy that delays the assessment of an expression until its value is needed. Ruby introduced a lazy enumeration feature. Lazy evaluation increases performance by avoiding needless…

ESC