Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created April 27, 2018 21:57
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 wjessop/ad6638da662ef9f4a73613f80cefe155 to your computer and use it in GitHub Desktop.
Save wjessop/ad6638da662ef9f4a73613f80cefe155 to your computer and use it in GitHub Desktop.
irb(main):006:0> def foo(a, b = "contains #{a}")
irb(main):007:1> puts a
irb(main):008:1> puts b
irb(main):009:1> end
=> :foo
irb(main):010:0> foo("things")
things
contains things
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment