Created
December 7, 2012 06:57
-
-
Save anonymous/4231335 to your computer and use it in GitHub Desktop.
Python 2 Ruby
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
# Python | |
def hi(x='', y=''): | |
print y | |
>>> hi(y='hello') | |
... 'hello' | |
# Ruby | |
def hi(x='', y='') | |
p y | |
end | |
>>> ??? # How do I do this in Ruby? I like to be verbose on this for documentation purposes sometimes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment