title: Ruby - remove underscores and capitalize
body: <p>Okay so I'm trying to remove the underscores, as seen in some of the holidays (for example,fourth_of_july). Then I want to capitalize each of the words.</p>
  
  <p>Expected result: fourth_of_july > Fourth Of July</p>
  
  <p>so this is my code:</p>
  
  <pre><code>holiday_dec = {
  
  :winter =&gt; {
     :christmas =&gt; ["Lights", "Wreath"],
     :new_years =&gt; ["Party Hats"]
   },
   :summer =&gt; {
     :fourth_of_july =&gt; ["Fireworks", "BBQ"]
   },
   :fall =&gt; {
     :thanksgiving =&gt; ["Turkey"]
   },
   :spring =&gt; {
     :memorial_day =&gt; ["BBQ"]
   }
  
  }
  
  def all_supplies_in_holidays(holiday_hash)
  
    holiday_hash.each do |seasons, holidays|
  
      holidays.each do |holidays, supplies|
        puts "#{seasons.to_s.capitalize}:"
        puts "  #{holidays.to_s.tr("_"," ").capitalize}: #{supplies.join(", ")}"
      end
  
    end
  
  end
  
  all_supplies_in_holidays(holiday_dec)
  </code></pre>