3 ms·
Being pedantic, that will always be false. Try this: level[:surprise] == 0 => true
by wheels 17y ago
Being 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.