short circuit evaluation  

Ruby doesn’t look at both expressions unless it has to; if it sees

false && true

it stops reading as soon as it sees && because it knows false && anything must be false.

 
0
Kudos
 
0
Kudos

Now read this

Setup Ruby with Ubuntu

setup Ruby on Ubuntu 12.04 LTS with rbenv - I installed Ubuntu to my old laptop (Windows 7) with - wubi. And I did open terminal = ctrl + alt + T (and then connect to Wi-Fi ) install git $ sudo apt-get update $ sudo apt-get install git... Continue →