Sha256: a67aa16823eefa1b5fc55a3218d929f8ec149022a2dad03c79a106d09cfb375f

Contents?: true

Size: 488 Bytes

Versions: 43

Compression:

Stored size: 488 Bytes

Contents

module ActiveGraph
  module Shared
    module Marshal
      extend ActiveSupport::Concern

      def marshal_dump
        marshal_instance_variables.map(&method(:instance_variable_get))
      end

      def marshal_load(array)
        marshal_instance_variables.zip(array).each do |var, value|
          instance_variable_set(var, value)
        end
      end

      private

      def marshal_instance_variables
        self.class::MARSHAL_INSTANCE_VARIABLES
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
activegraph-11.0.2-java lib/active_graph/shared/marshal.rb
activegraph-10.1.1 lib/active_graph/shared/marshal.rb
activegraph-11.0.1-java lib/active_graph/shared/marshal.rb
activegraph-11.0.0-java lib/active_graph/shared/marshal.rb
activegraph-10.1.0 lib/active_graph/shared/marshal.rb
activegraph-11.0.0.beta.4-java lib/active_graph/shared/marshal.rb
activegraph-10.0.2 lib/active_graph/shared/marshal.rb
activegraph-11.0.0.beta.3-java lib/active_graph/shared/marshal.rb
activegraph-11.0.0.beta.2-java lib/active_graph/shared/marshal.rb
activegraph-11.0.0.beta.1-java lib/active_graph/shared/marshal.rb
activegraph-10.0.1 lib/active_graph/shared/marshal.rb
activegraph-10.0.0 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.11 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.10 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.9 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.8 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.7 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.6 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.5 lib/active_graph/shared/marshal.rb
activegraph-10.0.0.pre.beta.4 lib/active_graph/shared/marshal.rb