K
Kev Jackson
Hi,
I want to pass an array into a block like so
v2 = []
object.some_method_that_takes_a_block do | v1, v2|
v2.push v1.action
end
causes a undefined method push for nil
the problem is that v2 gets assigned as nil as it gets passed through,
is there any way around this?
I don't really want to open the original class and try to add a new
method signature (I hope that's not how to get it to accept to variables)
Kev
I want to pass an array into a block like so
v2 = []
object.some_method_that_takes_a_block do | v1, v2|
v2.push v1.action
end
causes a undefined method push for nil
the problem is that v2 gets assigned as nil as it gets passed through,
is there any way around this?
I don't really want to open the original class and try to add a new
method signature (I hope that's not how to get it to accept to variables)
Kev