Last active
May 18, 2017 06:15
-
-
Save marshall-lee/972c2e65cb1f8e2c2daa8e97c42abe5c 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
| class FakeHash | |
| def to_hash | |
| { a: 1, b: 2, c: 3 } | |
| end | |
| end | |
| class FakeArray | |
| def to_a | |
| [1, 2, 3] | |
| end | |
| end | |
| def wow(*args) | |
| args | |
| end | |
| p wow(*FakeArray.new, 4, 5, 6, **FakeHash.new, d: 4, e: 5, f: 6) | |
| # [1, 2, 3, 4, 5, 6, {:a=>1, :b=>2, :c=>3, :d=>4, :e=>5, :f=>6}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment