Skip to content

Instantly share code, notes, and snippets.

Created May 23, 2012 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2a4eea46ca02e6f1788a to your computer and use it in GitHub Desktop.
Save anonymous/2a4eea46ca02e6f1788a to your computer and use it in GitHub Desktop.
> def foo(a, b="0", c="zip")
> puts a + '' + b + '' + c
> end
> args = foo(__method__).parameters.map { |arg| arg{1} }
NoMethodError: undefined method `+' for :irb_binding:Symbol
from (irb):25 in `foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment