Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2012 06:57
Show Gist options
  • Save anonymous/4231335 to your computer and use it in GitHub Desktop.
Save anonymous/4231335 to your computer and use it in GitHub Desktop.
Python 2 Ruby
# 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