The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition)

 

   

Ruby Way

By Hal Fulton

Slots : 1.0

Table of Contents
 

The object nil is logically equivalent to false. Any other object is true, including the number zero (0), the empty string (""), and the empty array ([]). Ruby's nil is like Python's None. For historical reasons, NIL, FALSE, and TRUE are mapped to the lowercase equivalents.


   
 

Категории