app/helpers/episodes_helper.rb
# Constructs nested `<itunes:category>` tags for the given category and
# subcategory settings as found in the `channel.json` file. The tags are given
# to the `xml` object, not returned.
#
# @param [Builder] xml An XML object being used to render the current
#   template.
# @param [String, Array<String>, Hash<String, String>, Hash<String, Array>] categories
#   The iTunes category or categories for this podcast. For subcategories, a
#   hash of category to one or more subcategories is used.
Constructs nested `` tags for the given category and
subcategory settings as found in the `channel.json` file. The tags are given
to the `xml` object, not returned.
Constructs nested ` ` tags for the given category and subcategory settings as found in the ` channel . json ` file . The tags are given to the ` xml ` object not returned .
def category_tags(xml, categories)
    case categories
      when String
        xml.itunes :category, text: categories
      when Array
        categories.each { |c| category_tags xml, c }
      when Hash
        categories.each do |parent, subcategories|
          xml.itunes(:category, text: parent) do
            category_tags xml, subcategories
          end
        end
    end
  end
def category_tags ( xml , categories ) case categories when String xml . itunes :category , text : categories when Array categories . each { | c | category_tags xml , c } when Hash categories . each do | parent , subcategories | xml . itunes ( :category , text : parent ) do category_tags xml , subcategories end end end end
Constructs nested `<itunes:category>` tags for the given category and
subcategory settings as found in the `channel.json` file.
Constructs nested ` <itunes : category > ` tags for the given category and subcategory settings as found in the ` channel . json ` file .
xml
<not_specific>
categories
<not_specific>
<not_specific>
categories The iTunes category or categories for this podcast. For subcategories, a hash of category to one or more subcategories is used.
categories The iTunes category or categories for this podcast . For subcategories a hash of category to one or more subcategories is used .