class method
self.new
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.new(indent=0, initial=0)
Create an XML markup builder.
- out
-
Object receiving the markup.
outmust respond to<<. - indent
-
Number of spaces used for indentation (0 implies no indentation and no line breaks).
- initial
-
Level of initial indentation.
Parameters
-
indentopt = 0 -
initialopt = 0
Source
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb, line 22
def initialize(indent=0, initial=0)
@indent = indent
@level = initial
end
Defined in activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb line 22
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Builder::XmlBase