[rspec-users] How to return a value passed by ref to a method
dchelimsky at gmail.com
Sun Feb 8 10:02:52 EST 2009
On Sun, Feb 8, 2009 at 6:48 AM, Remi Gagnon <rem.gagnon at gmail.com> wrote:
> I have a recursive method and I want to mock a var passed by ref.
> Something like that.
> Any idea?
AFAIK, Ruby has no language construct for "by_ref/by_val," so I'm not
sure what you're getting at here. Are you saying that you want the
method to return the value of an @value instance variable in the
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users