Module: RSS::Maker::AtomLink

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/rss/maker/atom.rb', line 109

def to_feed(feed, current)
  link = feed.class::Link.new
  set = setup_values(link)
  if set
    current.links << link
    set_parent(link, current)
    setup_other_elements(feed)
  else
    raise NotSetError.new(self.class.not_set_name,
                          not_set_required_variables)
  end
end