Sha256: 5f40e83554c0062834281c65d1c550fc3b4dde862e9d409e23841363cc5110e6

Contents?: true

Size: 206 Bytes

Versions: 23

Compression:

Stored size: 206 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Util
    module Mixins
      module DupableMixin
        def dup
          Marshal.load(Marshal.dump(self))
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ledger_sync-1.4.1 lib/ledger_sync/util/mixins/dupable_mixin.rb
ledger_sync-1.4.0 lib/ledger_sync/util/mixins/dupable_mixin.rb
ledger_sync-1.3.5 lib/ledger_sync/util/mixins/dupable_mixin.rb