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

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

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/rss/maker/feed.rb', line 368

def to_feed(feed, current)
  content = current.class::Content.new
  if setup_values(content)
    content.src = nil if content.src and content.content
    current.content = content
    set_parent(content, current)
    setup_other_elements(feed, content)
  elsif variable_is_set?
    raise NotSetError.new("maker.item.content",
                          not_set_required_variables)
  end
end