4 ms·
:surprise_level == 0 => true
by sailormoon 17y ago
:surprise_level == 0
=> true
- wheels 17y agoBeing pedantic, that will always be false. Try this: level[:surprise] == 0 => true
- snom370 17y agoTrue, for certain values of always. class Symbol def ==(o) true end end :surprise_level == 0 => true
- sailormoon 17y agooops. Right you are. I wasn't thinking!
- ThinkWriteMute 17y agoUnless he did :surprise_level = level[:surprise]
- DougBTX 17y agoThat's a syntax error, presumably. You can't assign to a symbol.