Sha256: c9d68fc872bd1ca890c04a9be0c397a1124b10c457e0719a8112131e599e9217

Contents?: true

Size: 359 Bytes

Versions: 70

Compression:

Stored size: 359 Bytes

Contents

# require "eitil_integrate/application_exporter/auto_sum/reduce_data"

module EitilIntegrate::RubyXL
  module AutoSum
    class << self

      def reduce_data
        drop_multi_class_arrays
      end

      def drop_multi_class_arrays
        @hash.transform_values! { |array| array.map(&:class).uniq.length == 1 ? array : [] }
      end

    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
eitil-2.0.6 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.5 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.4 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.3 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.2 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.1 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-2.0.0 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.4.1 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.4.0 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.12 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.11 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.10 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.9 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.8 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.7 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.6 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.5 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.4 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.3 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.3.2 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb