Sha256: 6fd62294ae5662aedb4b48fc0f592cfd11390bb788537dd779c5cd47d4d4d96b
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
# frozen_string_literal: true class Array def clip(number_of_last_elements = 1) take size - number_of_last_elements end def join_affixed(**options) must_be_any_of! [String] "#{Array(options[:prefix]).join}#{join options[:interfix]}#{Array(options[:suffix]).join}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omu-support-0.1.2 | lib/omu_support/core_ext/array.rb |
omu-support-0.1.1 | lib/omu_support/core_ext/array.rb |