Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby default method parameters

def method_name(parameter_one = "default value one", parameter_two = "default value two")
  # something
end 
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #ruby #default #method #parameters
ADD COMMENT
Topic
Name
7+6 =