class RSS::Maker::RSS20::Items::Item::Enclosure

公共实例方法

to_feed(rss, item) 点击切换源码
# File rss-0.3.1/lib/rss/maker/2.0.rb, line 131
def to_feed(rss, item)
  enclosure = Rss::Channel::Item::Enclosure.new
  set = setup_values(enclosure)
  if set
    item.enclosure = enclosure
    set_parent(enclosure, item)
    setup_other_elements(rss, enclosure)
  end
end

私有实例方法

required_variable_names() 点击切换源码
# File rss-0.3.1/lib/rss/maker/2.0.rb, line 142
def required_variable_names
  %w(url length type)
end