-
-
Save headius/7b003735c5ee063ce102f0e37a31e02c 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
h = Class.new { def to_h; {a:1}; end}.new | |
class X | |
def blah(*args, **kwargs) | |
[args, kwargs] | |
end | |
end | |
class Y < X | |
def blah(*args) | |
super | |
end | |
end | |
args, kwargs = Y.new.blah(h) | |
p args | |
p kwargs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment