Skip to content

Instantly share code, notes, and snippets.

@trydionel
Forked from duien/gist:818746
Created February 9, 2011 16:37
Show Gist options
  • Save trydionel/818773 to your computer and use it in GitHub Desktop.
Save trydionel/818773 to your computer and use it in GitHub Desktop.
ruby-1.8.7-p302 :001 > require 'builder'
=> true
ruby-1.8.7-p302 :002 > xm = Builder::XmlMarkup.new; nil
=> nil
ruby-1.8.7-p302 :003 > xm.title('foo'); nil
=> nil
ruby-1.8.7-p302 :004 > puts xm.target!
<title>foo</title>
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment