I have the following:
@array.inspect
["x1", "x2", "adad"]
I would like to be able to format that to:
client.send_message(s, m, {:id => "x1", :id => "x2", :id => "adad" })
client.send_message(s, m, ???????)
How can I have the @array output in the ??????? space as a ids?
Thanks
{:id => "x1", :id => "x2", :id => "adad" }is not a valid hash since you have a key collisionit should look like:
Update:
Then you can do
b.to_json, assuming you have donerequire "json"already