Module: XmlPatch

Defined in:
lib/xml_patch.rb,
lib/xml_patch/version.rb,
lib/xml_patch/applicator.rb,
lib/xml_patch/diff_builder.rb,
lib/xml_patch/xml_document.rb,
lib/xml_patch/diff_document.rb,
lib/xml_patch/operations/remove.rb,
lib/xml_patch/errors/invalid_xml.rb,
lib/xml_patch/errors/invalid_xpath.rb

Defined Under Namespace

Modules: Errors, Operations Classes: Applicator, DiffBuilder, DiffDocument, XmlDocument

Constant Summary collapse

VERSION =
'0.2.0'.freeze

Class Method Summary collapse

Class Method Details

.apply(xml) ⇒ Object



7
8
9
10
# File 'lib/xml_patch.rb', line 7

def apply(xml)
  patch = XmlPatch::XmlDocument.new(xml)
  XmlPatch::Applicator.new(patch)
end