| Class | RSS::ITunesChannelModel::ITunesCategory |
| In: |
lib/rss/itunes.rb
|
| Parent: | Element |
| ITunesCategory | = | self |
# File lib/rss/itunes.rb, line 108
108: def initialize(*args)
109: if Utils.element_initialize_arguments?(args)
110: super
111: else
112: super()
113: self.text = args[0]
114: end
115: end
# File lib/rss/itunes.rb, line 117
117: def full_name
118: tag_name_with_prefix(ITUNES_PREFIX)
119: end
# File lib/rss/itunes.rb, line 122
122: def maker_target(categories)
123: if text or !itunes_categories.empty?
124: categories.new_category
125: else
126: nil
127: end
128: end
# File lib/rss/itunes.rb, line 130
130: def setup_maker_attributes(category)
131: category.text = text if text
132: end