Class | REXML::Formatters::Pretty |
In: |
lib/rexml/formatters/pretty.rb
|
Parent: | Default |
compact | [RW] | If compact is set to true, then the formatter will attempt to use as little space as possible |
width | [RW] | The width of a page. Used for formatting text |
Create a new pretty printer.
output: | An object implementing ’<<(String)’, to which the output will be written. |
indentation: | An integer greater than 0. The indentation of each level will be this number of spaces. If this is < 1, the behavior of this object is undefined. Defaults to 2. |
ie_hack: | If true, the printer will insert whitespace before closing empty tags, thereby allowing Internet Explorer‘s feeble XML parser to function. Defaults to false. |
ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.