Skip to content

Instantly share code, notes, and snippets.

@carlosbaraza
Created July 17, 2018 14:02
Show Gist options
  • Save carlosbaraza/355990f441e5ebfa1f4709083da48349 to your computer and use it in GitHub Desktop.
Save carlosbaraza/355990f441e5ebfa1f4709083da48349 to your computer and use it in GitHub Desktop.
def my_method(a, b, c=15, d=35, *p, e)
puts ["a: #{a}",
"b: #{b}",
"c: #{c}",
"d: #{d}",
"p: #{p.inspect}",
"e: #{e}"].join(', ')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment