-
-
Save vesan/73861 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
[*1..99].reverse.each do |i| | |
phrase = ["#{i} bottles of beer on the wall", | |
"#{i} bottles of beer", | |
"You take one down", | |
"You pass it around", | |
"#{i - 1} bottles of beer on the wall.."].join(".. ") | |
`say #{phrase}` | |
end |
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
loop do | |
phrase = [ | |
"This is the song that never ends", | |
"Yes it goes on and on my friend", | |
"Some people, started singing it", | |
"not knowing what it was", | |
"And they'll continue singing it forever just because" | |
].join('.. ') | |
`say "#{phrase}"` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment