You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dirty_attributes.rb
    path of file: ./repos/couch_potato/lib/couch_potato/persistence
    
    the code of the file until where you have to start completion: require 'bigdecimal'
module CouchPotato
  module Persistence
    module DirtyAttributes

      def self.included(base) #:nodoc:
        base.send :
    
      def clone_attribute(value)
        if [Integer, Symbol, TrueClass, FalseClass, NilClass, Float, BigDecimal].find{|klass| value.is_a?(klass)}
          value
        elsif [Hash, Array].include?(value.class)
          # Deep clone
          Marshal::load(Marshal::dump(value))
        else
          value.clone
        end