new

new( indentation=2, ie_hack=false )
Class Public methods

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.

doc_ruby_on_rails
2015-05-06 16:15:27
Comments
Leave a Comment

Please login to continue.