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-1.1.26 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.25 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.24 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.23 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.22 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.21 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.20 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.19 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.18 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.17 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.16 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.15 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.14 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.13 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.12 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.11 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.10 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.9 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.8 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb
eitil-1.1.7 eitil_integrate/lib/eitil_integrate/application_exporter/auto_sum/reduce_data.rb