Ruby - Methods
Identify the error in this Ruby method:
def print_args(*args) puts args end print_args(1, 2, 3)
def print_args(*args) puts args end print_args(1, 2, 3)
puts args prints each element on a new line.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions