-
-
Save agrberg/5ac2fc99e9c2c273cd5d543d99097f5c 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 bar(one: 'a', two: 'b') | |
puts "#{one}, #{two}" | |
end | |
bar({ one: 1, two: 2 }) | |
# => 1, 2 | |
bar(one: 1, two: 2) | |
# => 1, 2 | |
bar({ one: 1, three: 3 }) | |
# => ArgumentError (unknown keyword: three) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment