Nil Values

Difficulty:
Elementary

Tags:
nil, booleans

Instructions:
Enter in a boolean value for what #nil? will return.

Code:
[0, '', 'chunky_bacon'].each { |v| assert_equal v.nil?, ___ }

Your Solution

Ruby 1.9.3

Back to Problems