-
-
Save xcobar/347d14e113cec605e1ca30a6f2b49e81 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 add_number(x, y) | |
raise 'x should be a number' unless x.is_a?(Integer) | |
raise 'y should be a number' unless y.is_a?(Integer) | |
x + y | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment