class RSS::Rss::Channel::Item::Enclosure

公共类方法

new(*args) 点击切换源代码
调用父类方法
# File rss-0.3.1/lib/rss/0.9.rb, line 352
def initialize(*args)
  if Utils.element_initialize_arguments?(args)
    super
  else
    super()
    self.url = args[0]
    self.length = args[1]
    self.type = args[2]
  end
end

私有实例方法

maker_target(item) 点击切换源代码
# File rss-0.3.1/lib/rss/0.9.rb, line 364
def maker_target(item)
  item.enclosure
end
setup_maker_attributes(enclosure) 点击切换源代码
# File rss-0.3.1/lib/rss/0.9.rb, line 368
def setup_maker_attributes(enclosure)
  enclosure.url = url
  enclosure.length = length
  enclosure.type = type
end