True and False Values

 
   

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.


   

 

 



The Ruby Way
The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition)
ISBN: 0672328844
EAN: 2147483647
Year: 2000
Pages: 119
Authors: Hal Fulton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net