Sha256: 5194cf72f70cab3328dd5c5aaad7cc0738fcb1e760b45810582636a40f5d9f0b
Contents?: true
Size: 387 Bytes
Versions: 16
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module Montrose module Refinements module ArrayConcat refine Object do def array_concat(other) Array(self) + other end end refine Hash do # array concat for Hash not supported # so we just return self def array_concat(_other) self end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems