Method: REXML::Comment#write

Defined in:
lib/rexml/comment.rb

#write(output, indent = -1,, transitive = false, ie_hack = false) ⇒ Object

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.



47
48
49
50
51
52
# File 'lib/rexml/comment.rb', line 47

def write( output, indent=-1, transitive=false, ie_hack=false )
	indent( output, indent )
	output << START
	output << @string
	output << STOP
end