Mega Code Archive

 
Categories / Ruby / Development
 

Prints nil

a = 0.0 if false    # This assignment is never executed print a             # Prints nil: the variable exists but is not assigned print b             # NameError: no variable or method named b exists