Sha256: 5fde052c17cb441b8c8b33f604a4e6e436136fa22b990f7cecbc86d977a80838
Contents?: true
Size: 421 Bytes
Versions: 4
Compression:
Stored size: 421 Bytes
Contents
module Seiun module XMLGenerators class Base def initialize(callback: nil) @callback = callback @rexml_doc = REXML::Document.new @rexml_doc << REXML::XMLDecl.new('1.0', 'UTF-8') end def to_s io = StringIO.new rexml_doc.write(io) io.rewind io.read end private def rexml_doc @rexml_doc end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
seiun-0.2.0 | lib/seiun/xml_generators/base.rb |
seiun-0.1.0 | lib/seiun/xml_generators/base.rb |
seiun-0.0.2 | lib/seiun/xml_generators/base.rb |
seiun-0.0.1 | lib/seiun/xml_generators/base.rb |