Created
February 8, 2010 21:17
-
-
Save barinek/298588 to your computer and use it in GitHub Desktop.
dynamic typing
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(first, second = first, third = second.size) | |
[first, second, third] | |
end | |
puts foo("hello") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment