Created
August 23, 2016 00:56
-
-
Save peagha/422706e6a7ad7afdc5a34d4c997ffde7 to your computer and use it in GitHub Desktop.
Calls Penny 3 times
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
def knock_the_door | |
`afplay /System/Library/Sounds/Pop.aiff` | |
end | |
def call_penny | |
`say "penny" --rate 300` | |
sleep 0.2 | |
3.times { knock_the_door } | |
end | |
3.times { call_penny } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment