Pigs Fly; Wait, No They Don't.

Difficulty:
Medium

Tags:
exceptions

Instructions:
Can you make a method return a differect value after a "return" is called?

Code:
def do_pigs_fly?
  return true
  ___
end

assert_equal do_pigs_fly?, false

Your Solution

Ruby 1.9.3

Back to Problems