D
Derek Cannon
How do Ruby programmers handle method overloading? In Java, I could
easily create several methods of the same name that accept a variety of
input.
I know in Ruby, using *args you can accept an unlimited number of
parameters. Do I just this with a series of if statements?
Or is there a common way Ruby programmers handle this?
Thanks again,
Derek
easily create several methods of the same name that accept a variety of
input.
I know in Ruby, using *args you can accept an unlimited number of
parameters. Do I just this with a series of if statements?
Or is there a common way Ruby programmers handle this?
Thanks again,
Derek