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



12
13
14
15
16
17
18
19
# File 'lib/xml/util/xmlcanonicalizer.rb', line 12

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