Sha256: 6cf65efc41898eca947aa1a2399f5067578b136cd6fb29254507871c44598fc2
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2020-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Realize # Mix-in that adds some nice common array helpers. module Arrays def array(value) value.is_a?(Hash) ? [value] : Array(value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
realize-1.6.0 | lib/realize/arrays.rb |
realize-1.5.0 | lib/realize/arrays.rb |
realize-1.4.0 | lib/realize/arrays.rb |