rails check method params code example Example: ruby optional arguments def print_all(title, *chapters) end