class RSS::ITunesChannelModel::ITunesCategory

常量

ITunesCategory

公共类方法

new(*args) 点击切换源代码
调用超类方法
# File rss-0.3.1/lib/rss/itunes.rb, line 113
def initialize(*args)
  if Utils.element_initialize_arguments?(args)
    super
  else
    super()
    self.text = args[0]
  end
end
required_prefix() 点击切换源代码
# File rss-0.3.1/lib/rss/itunes.rb, line 93
def required_prefix
  ITUNES_PREFIX
end
required_uri() 点击切换源代码
# File rss-0.3.1/lib/rss/itunes.rb, line 97
def required_uri
  ITUNES_URI
end

公共实例方法

full_name() 点击切换源代码
# File rss-0.3.1/lib/rss/itunes.rb, line 122
def full_name
  tag_name_with_prefix(ITUNES_PREFIX)
end

私有实例方法

maker_target(categories) 点击切换源代码
# File rss-0.3.1/lib/rss/itunes.rb, line 127
def maker_target(categories)
  if text or !itunes_categories.empty?
    categories.new_category
  else
    nil
  end
end
setup_maker_attributes(category) 点击切换源代码
# File rss-0.3.1/lib/rss/itunes.rb, line 135
def setup_maker_attributes(category)
  category.text = text if text
end
setup_maker_elements(category) 点击切换源代码
调用超类方法
# File rss-0.3.1/lib/rss/itunes.rb, line 139
def setup_maker_elements(category)
  super(category)
  itunes_categories.each do |sub_category|
    sub_category.setup_maker(category)
  end
end