Created
November 15, 2011 23:54
-
-
Save davidbalbert/1368802 to your computer and use it in GitHub Desktop.
wrap_and_run
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 wrap_and_run(message, *args) | |
EM.run_bock do | |
@one_api.send(message, *args) do |response| | |
return response | |
end | |
end | |
end | |
wrap_and_run(:send_sms, the_hash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment