Method: Wrongdoc::Rdoc#atom_node

Defined in:
lib/wrongdoc/rdoc.rb

#atom_node(doc, uri, title = 'Atom feed') ⇒ Object



62
63
64
65
66
67
68
69
# File 'lib/wrongdoc/rdoc.rb', line 62

def atom_node(doc, uri, title = 'Atom feed')
  link = Nokogiri::XML::Node.new('link', doc)
  link['rel'] = 'alternate'
  link['title'] = title
  link['href'] = uri.to_s
  link['type'] = 'application/atom+xml'
  link
end