Skip to content

Instantly share code, notes, and snippets.

@davidbalbert
Created November 15, 2011 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidbalbert/1368802 to your computer and use it in GitHub Desktop.
Save davidbalbert/1368802 to your computer and use it in GitHub Desktop.
wrap_and_run
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