Sha256: efac2b3ae48503f22aa8b3df91323544185655ebf30121e2a89bf1f7becbd129
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
module WWMD attr_accessor :value class VSString < VSClassHelpers def initialize(val) @value = val end def serialize stack = super stack << self.write_7bit_encoded_int(self.size) stack << self.value return stack end def to_xml xml = super # emit quoted-printable if we need to if self.value =~ /[^\x20-\x7e]/ xml.add_attribute("encoding","quoted-printable") xml.add_text(self.value.to_qp) else xml.add_text(self.value) end xml end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
miketracy-wwmd-0.2.11 | lib/wwmd/viewstate/vs_string.rb |