Ruby variable troubles.

Posted by James Moore on Stack Overflow See other posts from Stack Overflow or by James Moore
Published on 2010-04-01T09:50:56Z Indexed on 2010/04/01 9:53 UTC
Read the original article Hit count: 329

Filed under:

Hey,

Im sure I am missing something here but none the less.

foo['bar'] = nil

if(foo['bar'] == nil)
   puts "foo bar is nil :("

However, nothing happens? Any thoughts?

© Stack Overflow or respective owner

Related posts about ruby