Skip to content

Instantly share code, notes, and snippets.

@radar

radar/a.rb Secret

Last active November 19, 2018 23:12
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 radar/e7b5d2811fa30fb8dfd6de961ee30cf7 to your computer and use it in GitHub Desktop.
Save radar/e7b5d2811fa30fb8dfd6de961ee30cf7 to your computer and use it in GitHub Desktop.
public_send(res.reason_phrase == "Created" ? *[:a, "PR Created"] : *[:a, "PR not created"])
if res.reason_phrase == "Created"
a("PR Created")
else
b("PR not created")
end
res.reason_phrase == "Created" ? a("PR Created") : b("PR not created")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment