Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created November 11, 2011 16:58
Show Gist options
  • Save benlangfeld/1358532 to your computer and use it in GitHub Desktop.
Save benlangfeld/1358532 to your computer and use it in GitHub Desktop.
def play!(*arguments)
play *arguments || raise Adhearsion::PlaybackError, "One of the passed outputs is invalid"
end
@lpradovera
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment