Created
April 27, 2018 21:57
-
-
Save wjessop/ad6638da662ef9f4a73613f80cefe155 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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