Skip to content

Instantly share code, notes, and snippets.

@machisuji
Created June 3, 2013 17:56
Show Gist options
  • Save machisuji/5699971 to your computer and use it in GitHub Desktop.
Save machisuji/5699971 to your computer and use it in GitHub Desktop.
Parens are optional for both method invocation and definition in Ruby.
def add a, b
a + b
end
three = add 1, 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment