Created
November 11, 2011 16:58
-
-
Save benlangfeld/1358532 to your computer and use it in GitHub Desktop.
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
def play!(*arguments) | |
play *arguments || raise Adhearsion::PlaybackError, "One of the passed outputs is invalid" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
def play!(*arguments)
result = true
arguments.each do |argument|
result = play argument
if result == false
raise Adhearsion::PlaybackError, "One of the passed outputs is invalid"
end
end
end