Sha256: 1143168676e631502c80ca7f8b47715dad6ffbbb2b025e0d7a4d081eebc20006
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module Richard module Internal class XmlFormat class << self def pretty(text) require 'nokogiri' doc = Nokogiri.XML(text) do |config| config.default_xml.noblanks end doc.to_xml(:indent => 2).lines.drop(1) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
richard_iii-0.1.1 | lib/richard_iii/internal/xml_format.rb |
richard_iii-0.1.0 | lib/richard_iii/internal/xml_format.rb |