class Array

Monkey patches for Array

Public Instance Methods

prefix(string) click to toggle source

Receives a string to add as prefix in each item and returns a new array with the concatenaded strings

@return [Array<String>]

# File lib/kitchen/patches/array.rb, line 12
def prefix(string)
  map { |item| "#{string}#{item}" }
end