Sha256: 5e4e1acbc3d876ffe9b95c240a4aae1a39911d17057616c15fdfb3b3a9c93f8c
Contents?: true
Size: 686 Bytes
Versions: 4
Compression:
Stored size: 686 Bytes
Contents
module WWMD class VSStubs::VSArray include VSStubHelpers attr_accessor :value attr_reader :typeref attr_reader :typeval def initialize(typeref,typeval) @typeref = typeref @typeval = typeval @value = [] end def add(obj) @value << obj end def serialize stack = super stack << self.write_7bit_encoded_int(self.value.size) self.value.each do |v| stack << v.serialize end return stack end def to_xml xml = super xml.add_attribute("size", self.value.size.to_s) self.value.each do |v| xml.add_element(v.to_xml) end xml end end end
Version data entries
4 entries across 4 versions & 3 rubygems