Skip to content

Documentation


Documentation / @blazetrails/activesupport / IndentedXmlStringBuilder

Class: IndentedXmlStringBuilder ​

Defined in: packages/activesupport/lib/xml-mini.ts:454

No Rails Equivalent ​

PERMANENT

Implements ​

Constructors ​

Constructor ​

new IndentedXmlStringBuilder(baseIndent?, indentWidth?): IndentedXmlStringBuilder

Defined in: packages/activesupport/lib/xml-mini.ts:458

Parameters ​

ParameterTypeDefault value
baseIndentstring""
indentWidthnumber2

Returns ​

IndentedXmlStringBuilder

Methods ​

closeTag() ​

closeTag(name): void

Defined in: packages/activesupport/lib/xml-mini.ts:487

Parameters ​

ParameterType
namestring

Returns ​

void

No Rails Equivalent ​

PERMANENT

Implementation of ​

XmlBuilder.closeTag


instructBang() ​

instructBang(): void

Defined in: packages/activesupport/lib/xml-mini.ts:493

Returns ​

void

No Rails Equivalent ​

PERMANENT

Implementation of ​

XmlBuilder.instructBang


openTag() ​

openTag(name, attributes?): void

Defined in: packages/activesupport/lib/xml-mini.ts:481

Parameters ​

ParameterType
namestring
attributesRecord<string, string>

Returns ​

void

No Rails Equivalent ​

PERMANENT

Implementation of ​

XmlBuilder.openTag


tagBang() ​

tagBang(name, content?, attributes?): void

Defined in: packages/activesupport/lib/xml-mini.ts:472

Parameters ​

ParameterType
namestring
content?unknown
attributes?Record<string, string>

Returns ​

void

No Rails Equivalent ​

PERMANENT

Implementation of ​

XmlBuilder.tagBang


target() ​

target(): string

Defined in: packages/activesupport/lib/xml-mini.ts:498

Returns ​

string

Implementation of ​

XmlBuilder.target