Sha256: a093c9bd03db86c9d426ddcb9319d9d8e7cfdec70f84bb84f3d56d15fbcaf2ab
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 Bytes
Contents
=begin Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end # Overloads the {Object} class providing a {#deep_clone} method. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Object # Deep-clones self using a Marshal dump-load. # # @return [Object] # Duplicate of self. def deep_clone Marshal.load( Marshal.dump( self ) ) end def to_rpc_data_or_self respond_to?( :to_rpc_data ) ? to_rpc_data : self end end
Version data entries
6 entries across 6 versions & 1 rubygems