Sha256: b860fafaede7166dd96fd07d0288c04a8a20a8776f31e39c0e21cf7b3d5436ef

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

module Rpub
  class XmlFile
    # @return [Builder::XmlMarkup]
    attr_reader :xml

    def initialize
      @xml = Builder::XmlMarkup.new :indent => 2
    end

    # @return [String] render this file and output as string
    def to_s
      render
      xml.target!
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rpub-0.4.0 lib/rpub/xml_file.rb
rpub-0.3.0 lib/rpub/xml_file.rb
rpub-0.2.1 lib/rpub/xml_file.rb