title: ruby: wrap each element of an array in additional quotes
body: <p>I have a following string : </p>
  
  <pre><code>a = "001;Barbara;122"
  </code></pre>
  
  <p>I split in into array of strings:</p>
  
  <pre><code>names = a.split(";")
  names = ["001", "Barbara", "122"] 
  </code></pre>
  
  <p>What should I do to have each element wrapped additionally in '' quotes?
  The result should be </p>
  
  <pre><code>names = ["'001'", "'Barbara'", "'122'"]
  </code></pre>
  
  <p>I know it sounds strange but I need it for database query in ruby on rails. For some reason I cannot access database record if my name is in "" quotes. I do have mk1==0006 in the database but rails does not want to access it somehow. However, it does access 1222.</p>
  
  <pre><code>sql = "SELECT mk1, mk2, pk1, pk2, pk3, value_string, value_number FROM infos WHERE mk1 in (0006) AND value_string ='männlich';"         
  recs = ClinicdbInfo.find_by_sql(sql)     
  =&gt; [] 
  
  sql = "SELECT mk1, mk2, pk1, pk2, pk3, value_string, value_number FROM infos WHERE mk1 in (1222) AND value_string ='männlich';"         
  recs = ClinicdbInfo.find_by_sql(sql)     
   =&gt; [#&lt;Info mk1: "1222", mk2: "", pk1: "Information allgemein", pk2: "Geschlecht", pk3: "Wert", value_string: "männlich", value_number: nil&gt;] 
  </code></pre>
  
  <p>So, I just need to wrap every element of names into additional ''-quotes.</p>