Sha256: 69e05f1effdaa995ca828ac62e802a95f3c97d4f7a39476ff79ec6d78beeca0f
Contents?: true
Size: 251 Bytes
Versions: 2
Compression:
Stored size: 251 Bytes
Contents
# frozen_string_literal: true module Micro module Observers module Utils EMPTY_HASH = {}.freeze EMPTY_ARRAY = [].freeze def self.compact_array(value) Array(value).flatten.tap(&:compact!) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
u-observers-2.0.0 | lib/micro/observers/utils.rb |
u-observers-1.0.0 | lib/micro/observers/utils.rb |