M Kumar M Kumar - 1 year ago 196
Ruby Question

Ruby array to string conversion

I have a ruby array like


I want to convert it to a string like

How can I do that?

Answer Source

I'll join the fun with:




Some string interpolation to add the first and last single quote :P

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download