Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Last active July 13, 2016 01:04
Show Gist options
  • Save amatsuda/227a2f59c5109ae00309263a5e03b66e to your computer and use it in GitHub Desktop.
Save amatsuda/227a2f59c5109ae00309263a5e03b66e to your computer and use it in GitHub Desktop.
What happens when you def translate in IRB
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