Given the method:
def foo(a,b=5,c=1)
return a+(b*c)
end
Startup foo(1)should return 6. But how are you going to do something like this: foo(1,DEFAULT,2). I need to change the third value, but use the second default value.
How do you do this? (Note: I cannot just change the order of the variables, because they are the arguments for the gem method)
source
share