Last active
August 29, 2015 14:05
-
-
Save hackjoy/7f0df206a6fea90ee4e3 to your computer and use it in GitHub Desktop.
bottles_lib_2.rb
This file contains hidden or 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 Bottles | |
| def verse(num) | |
| case num | |
| when 89 | |
| "89 bottles of beer on the wall, 89 bottles of beer.\n" + | |
| "Take one down and pass it around, 88 bottles of beer on the wall.\n" | |
| when 99 | |
| "99 bottles of beer on the wall, 99 bottles of beer.\n" + | |
| "Take one down and pass it around, 98 bottles of beer on the wall.\n" | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment