Converting output of one function into array and feed value into variable in other function in ruby
For one of ruby programming logic, am trying to convert the string output of one function into an array and from array have to feed the values to the variables declared in other function of the program
Code:
response.each do |instance | Code:
def run_me |
Quote:
Show us what you have done/tried to accomplish your goals and tell us where you're stuck, and we can try to help. |
Have to say, I am with TB0ne on this one. There is little to no information on what is stored in the response object and what the format is, but as a start I would probably look at .to_a method
You show no real way of how the newly aquired array is being used as your current example where I see the word 'array' is a string Help us to help you and maybe tackle each part separately and ask questions on what exactly it is you are stuck on? (ie not how to do it) |
"Online forums are not a programming (or a homework ...) service." We can sometimes assist in answering specific questions given short, complete examples of where you may be stuck.
|
All times are GMT -5. The time now is 11:20 PM. |