Sha256: 565bed911182dd90f4df868fd0e7a991bc254f6c52082a15ccc12135bb984d95

Contents?: true

Size: 221 Bytes

Versions: 5

Compression:

Stored size: 221 Bytes

Contents

# frozen_string_literal: true

module Micro
  module Observers

    module Utils
      EMPTY_HASH = {}.freeze

      def self.compact_array(value)
        Array(value).flatten.tap(&:compact!)
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
u-observers-0.9.0 lib/micro/observers/utils.rb
u-observers-0.8.0 lib/micro/observers/utils.rb
u-observers-0.7.0 lib/micro/observers/utils.rb
u-observers-0.6.0 lib/micro/observers/utils.rb
u-observers-0.5.0 lib/micro/observers/utils.rb