Class: REXML::Instruction

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

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
16
17
18
# File 'lib/wss4r/security/util/xmlcanonicalizer.rb', line 11

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