-
-
Save amatsuda/227a2f59c5109ae00309263a5e03b66e to your computer and use it in GitHub Desktop.
What happens when you def translate in IRB
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 b() binding; end | |
eval 'def translate() end', b | |
eval '1' | |
# => t.rb:3:in `eval': wrong number of arguments (given 1, expected 0) (ArgumentError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment