Sha256: 625c1ece90e0ec67129b517112cbc3f1dbb457ddc486da40beaffd7e2920c00b
Contents?: true
Size: 290 Bytes
Versions: 21
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true # Monkey patches for +Array+ # class Array # Receives a string to add as prefix in each item and returns # a new array with the concatenaded strings # # @return [Array<String>] # def prefix(string) map { |item| "#{string}#{item}" } end end
Version data entries
21 entries across 21 versions & 1 rubygems