File: builder-1.2.4.rdoc [builder-3.0.4 Documentation]

### Home Classes Methods

### Files

- CHANGES
- MIT-LICENSE
- Rakefile
- builder-1.2.4.rdoc
- builder-2.0.0.rdoc
- builder-2.1.1.rdoc

### Class Index

Quicksearch

- Builder
- Builder::BlankSlate
- Builder::IllegalBlockError
- Builder::XmlBase
- Builder::XmlEvents
- Builder::XmlMarkup
- BlankSlate
- Fixnum
- Kernel
- Module
- Object
- String
- Symbol

No matching classes.

# Builder 1.2.4 Released.

Added a "CDATA" method to the XML Markup builder (from Josh Knowles).

## What is Builder?

Builder::XmlMarkup allows easy programmatic creation of XML markup. For example:

    builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2)
    builder.person { |b| b.name("Jim"); b.phone("555-1234") }
    puts builder.target!

will generate:

    <person>
      <name>Jim</name>
      <phone>555-1234</phone>
    </person>

## Availability

The easiest way to get and install builder is via RubyGems ...

    gem install builder    (you may need root/admin privileges)

## Thanks

- Josh Knowles for the cdata! patch.

-- Jim Weirich

[Validate]

Generated with the Darkfish Rdoc Generator 2.