Answers for "ruby get method parameters"

0

ruby name parameters

def foo(bar: 'default')
  puts bar
end

foo # => 'default'
foo(bar: 'baz') # => 'baz'
Posted by: Guest on December-19-2020

Browse Popular Code Answers by Language