Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Added some initial documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed May 12, 2008
1 parent 022f0cd commit 5a5a0fc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/faster_builder/xml_markup.rb
@@ -1,8 +1,26 @@
require "builder"
require "faster_builder"

# A Builder::XmlMarkup-alike which uses libxml-ruby to generate XML.
#
# Example:
#
# xml = FasterBuilder::XmlMarkup.new
# xml.instruct!
# xml.entries(:count => 1) do
# xml.comment!("blah blah blah")
# xml.entry do
# xml.id(40)
# xml.title("Happiness")
# xml.contents do
# xml.cdata!("Anything does here. &&&<<><> yeah.")
# end
# end
# end
#
class FasterBuilder::XmlMarkup < BlankSlate

# Creates a new FasterBuilder::XmlMarkup instance.
def initialize(options = {})
@options = options
@nodes = [nil]
Expand Down

0 comments on commit 5a5a0fc

Please sign in to comment.