Ruby method

9 views
Skip to first unread message

Julian Parrish

unread,
May 23, 2016, 2:17:51 AM5/23/16
to Ruby on Rails: Talk
Question I wrote this method but the array doesnt hold the values I would like the array length to increase each time the method is called 

https://gist.github.com/jparrish62/dfd6008c49b06a431a03582aeaac0f78

Colin Law

unread,
May 23, 2016, 2:56:20 AM5/23/16
to Ruby on Rails: Talk
With a short piece of code like that it is better just to put it
inline. I don't understand exactly what problem you are seeing.
Please tell us exactly what code you call, what is the result and what
you expect the result to be. As I said, if the code is less than a
few dozen lines then paste it here to save us looking elsewhere.

Colin
Reply all
Reply to author
Forward
0 new messages