Monday, 26 August 2013

Read string as variable RUBY

Read string as variable RUBY

I am pulling the following string from a csv file, from cell A1, and
storing it as a variable:
#{collector_id}
So, cell A1 reads #{collector_id}, and my code essentially does this:
test = #excel_cell_A1
However, if I then do this:
puts test
I get this:
#{collector_id}
I need #{collector_id} to read as the actual variable collector_id, not
the code that I am using to call the variable. Is that possible?
Thanks for the help. I am using ruby 1.9.3.

No comments:

Post a Comment