Sha256: 508f6eb5e89b2a472d0cc55a4099596758360fae49b8dcd7b647f7cb7dbd2469

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

module WWMD
  class VSStubs::VSUnit
    include VSStubHelpers

    attr_reader :dword
    attr_reader :word
    attr_reader :value

    def initialize(dword,word)
      @dword = dword
      @word = word
      @value = ''
    end

    def serialize
      stack = super
      stack << write_double(self.dword)
      stack << write_single(self.word)
      return stack
    end

    def to_xml
      xml = super
      xml.add_attribute("dword",self.dword.to_s)
      xml.add_attribute("word",self.word.to_s)
      xml
    end

  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
iZsh-wwmd-0.2.19 lib/wwmd/viewstate/vs_stubs/vs_unit.rb
miketracy-wwmd-0.2.17 lib/wwmd/viewstate/vs_stubs/vs_unit.rb
miketracy-wwmd-0.2.19 lib/wwmd/viewstate/vs_stubs/vs_unit.rb
wwmd-0.2.20.3 lib/wwmd/viewstate/vs_stubs/vs_unit.rb