Class: REXML::Instruction

Inherits:
Object
  • Object
show all
Defined in:
lib/xml/util/xmlcanonicalizer.rb

Instance Method Summary collapse

Instance Method Details

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



17
18
19
20
21
22
23
24
# File 'lib/xml/util/xmlcanonicalizer.rb', line 17

def write(writer, indent=-1, transitive=false, ie_hack=false)
  indent(writer, indent)
  writer << START.sub(/\\/u, '')
  writer << @target
  writer << ' '
  writer << @content if @content != nil
  writer << STOP.sub(/\\/u, '')
end