Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save practicingruby/1ff3fdbc108e00c1c64548f8b5355b6a to your computer and use it in GitHub Desktop.
Save practicingruby/1ff3fdbc108e00c1c64548f8b5355b6a to your computer and use it in GitHub Desktop.
def computation(number)
raise "Amount cannot be negative" if number < 0
# do something here.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment