First crack at the leap exercise in Ruby.