Sha256: c8d2a00e399aa4604cfe7fba752dbdd8651dfe6464659d88ddad786226394dfc

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

module WWMD
  class VSStubs::VSTriplet
    include VSStubHelpers

    attr_accessor :value

    def initialize(obj1,obj2,obj3)
      @value = []
      @value << obj1
      @value << obj2
      @value << obj3
    end

    def serialize
      stack = super
      self.value.each do |v|
        stack << v.serialize
      end
      return stack
    end

    def to_xml
      xml = super
      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

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