Defined? Or not?

Submitted By:
lucascaton

Difficulty:
Elementary

Tags:
Object, defined?

Instructions:
If the conditional expression returns false, is the 'w' variable defined? Or not?

Code:
if false
  w = :whatever
end

assert_equal defined?(w) != nil, ___

Your Solution

Ruby 1.9.3

Back to Problems