Created
April 22, 2015 16:15
-
-
Save anonymous/41d08fddc611d41cd3a6 to your computer and use it in GitHub Desktop.
This file contains 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
def foo(a = 'a', b = 'b') | |
puts a.inspect | |
puts b.inspect | |
end | |
foo(nil, 2) # I cannot access the default value for parameter a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment