Sha256: 3d9828c666db971c9cd362dd85b5878b40b9c8550cb21dbb55f1748bebfc7ffd
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
class Trackerific::Builders::Base::XML < Struct @xml_version = "1.0" class << self attr_accessor :xml_version end attr_reader :xml def initialize(*args) super(*args) @xml = "" build end protected def build raise NotImplementedError, "Implement this method in your builder subclass", caller end private def builder @builder ||= begin builder = Builder::XmlMarkup.new(target: @xml) builder.instruct! :xml, version: self.class.xml_version builder end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trackerific-0.7.4 | lib/trackerific/builders/base/xml.rb |
trackerific-0.7.3 | lib/trackerific/builders/base/xml.rb |