Created
January 28, 2010 15:57
-
-
Save georgeguimaraes/288857 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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