class String

def prepend_each(separator, value)

Returns:
  • (String) -

Parameters:
  • value (String) --
  • separator (String) --
def prepend_each(separator, value)
  lines(separator).collect { |x| value + x }.join
end