Trying to refactor ruby code so parameter list isn't so long

Viewed 564

If I have a method with a parameter list like such:

def func(param1, param2, param3, para4, param5, param6)

what would be the best way to get rid of the long list? There are suggestion to create a separate object, but I'm not sure how I would do that.

2 Answers
Related