-
-
Save enebo/5cf383da52e714bc85a34ab61bf40d2f 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
system ~/work/jruby master 3527% mri31 ../snippets/alias6.rb | |
2 | |
{:c=>3} |
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(a: 1, **k) | |
p a, k | |
end | |
def foo(*r) | |
bar(*r) | |
end | |
alias :bar2 :foo | |
ruby2_keywords :bar2 | |
foo(a: 2, c: 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment