Skip to content

Instantly share code, notes, and snippets.

@georgeguimaraes
Created January 28, 2010 15:57
Show Gist options
  • Save georgeguimaraes/288857 to your computer and use it in GitHub Desktop.
Save georgeguimaraes/288857 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'atom'
xhtml = Atom::Content::Xhtml.new("<p>Some text</p>")
entry = Atom::Entry.new do |e|
e.title = "some title"
e.updated = 12345
e.content = xhtml
end
# both lines below raise exceptions
puts xhtml.to_xml
puts entry.to_xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment