I have an array:
ar = ["p=abhZRAh7Un", "a=2", "c=1", "l=3033102", "r=1", "rt=mr", "pid=136330865", "pdid=AiOIhH2vzMPqvhYkxXOxeA%3D%3D", "lks=54.0311", "fks=54.0311"]
and need to convert it into a hash with keys p
, a
, c
, etc. and values – whatever is to the right of the equal sign. What is an elegant way to do that in ruby?