Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby name parameters

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

foo # => 'default'
foo(bar: 'baz') # => 'baz'
 
PREVIOUS NEXT
Tagged: #ruby #parameters
ADD COMMENT
Topic
Name
5+2 =