From: Hans Mackowiak Date: 2013-02-15T21:41:42+09:00 Subject: Re: Two similar sentences have different behaviour. Is it ok? its because is the first sample a= is parsed first so it knows that its an local variable, thats why defined? a returns true using defined is not an good idea, showing this sample: if false a = 2 end a #=> nil -- Posted via http://www.ruby-forum.com/.