Method: ESBify::Strategy#to_xml

Defined in:
lib/ESBify/strategy.rb

#to_xmlObject



25
26
27
28
29
30
31
32
# File 'lib/ESBify/strategy.rb', line 25

def to_xml
  b = Builder::XmlMarkup.new indent: 2
  b.instruct!
  b.declare! :DOCTYPE, :BehaviourSet, :SYSTEM, "esb-ji-jason/behaviours.dtd"
  b.strategy do |b|
    b << to_xml_partial
  end
end