write( output, indent=-1, transitive=false, ie_hack=false )public
DEPRECATED
output
Where to write the string
indent
An integer. If -1, no indenting will be used; otherwise, the indentation will be this number of spaces, and children will be indented an additional amount.
transitive
Ignored by this class. The contents of comments are never modified.
ie_hack
Needed for conformity to the child API, but not used by this class.
# File lib/rexml/comment.rb, line 50
def write( output, indent=-1, transitive=false, ie_hack=false )
Kernel.warn("Comment.write is deprecated. See REXML::Formatters", uplevel: 1)
indent( output, indent )
output << START
output << @string
output << STOP
end