Sha256: 54de10d40ff39adcbe40258fc3c6c2548b1820981acd6628405d15fe0787a462
Contents?: true
Size: 238 Bytes
Versions: 3
Compression:
Stored size: 238 Bytes
Contents
require 'nokogiri' module XMP::Handler class XML def call(object) object = Nokogiri::XML(object) if object.is_a? String XMP::Document.new(object) if object.is_a? Nokogiri::XML::Document and object.root end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xmp-2.0.0 | lib/xmp/handler/xml.rb |
xmp-1.0.1 | lib/xmp/handler/xml.rb |
xmp-1.0.0 | lib/xmp/handler/xml.rb |