Skip to content

Instantly share code, notes, and snippets.

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 jakeonrails/4741395 to your computer and use it in GitHub Desktop.
Save jakeonrails/4741395 to your computer and use it in GitHub Desktop.
# Assuming all the methods called here also return true/false,
# use the logical composition operators to create a final result
# which can short-circuit if one of the methods fails:
def composed_method
frobulate_widgets and refrobulate_widgets and confribulate_frobulations
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment