Created
August 10, 2013 03:33
-
-
Save victorarias/6198944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PodiumPosition | |
# .. behavior .. # | |
def to_int | |
@race_position | |
end | |
end | |
position = PodiumPosition.new(1) | |
prizes = [ "orange", "apple", "corn" ] | |
puts "Congrats, you won #{prizes[position]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment