Skip to content

Ruby is not Java PHP ...

Derkje-J edited this page Feb 22, 2013 · 1 revision

Here are some caveats compared to other OOP languages:

Value Types Only Fixnum, Bignum, true, false and nil

Evaluates to false Only false and nil

Evaluates to true Anything else, also: 0 and ""

Line comment Starts with an #

Clone this wiki locally