static public Method

XmlBase.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.

Source Code

# File builder/xmlbase.rb, line 22
def initialize(indent=0, initial=0)
  @indent = indent
  @level  = initial
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.