Skip to content

Instantly share code, notes, and snippets.

@vasilakisfil
Created March 4, 2021 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasilakisfil/efddaa5d6143859e3ca1991ab521faf7 to your computer and use it in GitHub Desktop.
Save vasilakisfil/efddaa5d6143859e3ca1991ab521faf7 to your computer and use it in GitHub Desktop.
def foo(a: "default A", b: "default B")
puts "a: #{a}, b: #{b}"
end
def call_foo(*args)
foo(*args)
end
call_foo({a: "it's an a!", b: "it's a B"})
call_foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment