How Ruby automatically treat values other than true or false? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How Ruby automatically treat values other than true or false?

20th Apr 2017, 4:31 AM
Ruby
1 Respuesta
+ 3
Every objects and every expressions must either evaluate to true or false. Both true and false are Ruby objects.
20th Apr 2017, 4:37 AM
Ruby