Check out example codes for "ruby optional arguments". It will help you in understanding the concepts better.

Code Example 1

def print_all(title, *chapters)
end

Learn ReactJs, React Native from akashmittal.com