Class: RSS::Maker::Atom::Feed::Items::Item::Source

Inherits:
SourceBase
  • Object
show all
Defined in:
lib/rss/maker/feed.rb

Defined Under Namespace

Classes: Categories, Generator, Icon, Links, Logo

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



238
239
240
241
242
243
244
245
# File 'lib/rss/maker/feed.rb', line 238

def to_feed(feed, current)
  source = current.class::Source.new
  setup_values(source)
  current.source = source
  set_parent(source, current)
  setup_other_elements(feed, source)
  current.source = nil if source.to_s == "<source/>"
end