-
-
Save havenwood/169e5bbd9174fe04479a to your computer and use it in GitHub Desktop.
This file contains 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 calculate(number, *other_numbers, **options) | |
if options[:subtract] | |
subtract(number, other_numbers, options) | |
elsif options[:add] | |
add(number, other_numbers, options) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment