method

new

rails latest stable - Class: Builder::XmlMarkup

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

new(options={})
public

Create an XML markup builder. Parameters are specified by an option hash.

:target=>target_object:Object receiving the markup. out must respond to the << operator. The default is a plain string target.
:indent=>indentation:Number of spaces used for indentation. The default is no indentation and no line breaks.
:margin=>initial_indentation_level:Amount of initial indentation (specified in levels, not spaces).