Skip to content

Instantly share code, notes, and snippets.

@JKring
Created February 27, 2015 18:09
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 JKring/b1c53fdee672929234ec to your computer and use it in GitHub Desktop.
Save JKring/b1c53fdee672929234ec to your computer and use it in GitHub Desktop.
Ruby is weird
def do_something(str: this_is_not_defined_anywhere)
puts str
end
# Works fine
do_something(str: 'dogs')
# Obviously doesn't work fine
do_something
# => NameError: undefined local variable or method `this_is_not_defined_anywhere' for main:Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment