title: Array of Strings to Convert to Mixed Array
body: <p>I'm trying to convert an Array of Arrays consisting of Ruby Strings into an Array of Arrays consisting of Strings and Floats.</p>
  
  <p>Here is my attempt:</p>
  
  <pre><code>array = [["My", "2"], ["Cute"], ["Dog", "4"]] 
  array.collect! do |x|
    x.each do |y|
      if y.gsub!(/\d+/){|s|s.to_f}
      end
    end
  end
  
  
   =&gt; [["My", "2.0"], ["Cute"], ["Dog", "4.0"]]
  </code></pre>
  
  <p>I'm looking for this to rather return <code>[["My", 2.0], ["Cute"], ["Dog", 4.0]]</code> What did I do wrong?</p>