Created
September 1, 2015 20:12
-
-
Save jmdeldin/3d4e01a8008527a3de29 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 foo(arg1:, arg2: :foo) | |
puts "arg1 = %s, arg2 = %s" % [arg1, arg2] | |
end | |
foo(arg1: "HI") | |
foo(arg1: "HI", arg2: "MOM") | |
foo(**{arg1: "HI", arg2: "MOM"}) |
Author
jmdeldin
commented
Sep 1, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment