Is there any way to get a list of the arguments passed to a method's caller? I am aware of Kernel.caller, but it seems like it just gives a method name. I would like something like this:
class Test
def test1(x, y)
test2
end
end
class Test2
def test
# here I'd like to have an Array containing two 2's (the
# values passed to Test.test1)
end
end
Test.new.test1(2, 2)
_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com