If you want to save as ' ["2", "3", [2, 3, "2"]] ' , you can use
inspect method:

arr1 = ["2", "3", [2, 3, "2"]]
str = arr1.inspect

If you want to save as ' 23232 ' , you can use this parr of code:

arr1 = ["2", "3", [2, 3, "2"]]
str = arr1.flatten.to_s


On 10 мар, 11:54, wesley chen <cjq....@gmail.com> wrote:
> Suppose I have an array arr1 like: ["2", "3", [2, 3, "2"]]
> When I use: p arr1,
> I will get: ["2", "3", [2, 3, "2"]]
> I would like to save the ["2", "3", [2, 3, "2"]] as a string
> "["2", "3", [2, 3, "2"]]", how to make it?
>
> Appreciated to any suggestion.
>
> Thanks.
> Wesley Chen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to