class method self.new

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(indent=0, initial=0)

Create an XML markup builder.

out

Object receiving the markup. out must respond to <<.

indent

Number of spaces used for indentation (0 implies no indentation and no line breaks).

initial

Level of initial indentation.

Parameters

indent opt = 0
initial opt = 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

Type at least 2 characters to search.

↑↓ navigate · open · esc close