lib/sixarm_ruby_ramp/array/join.rb
def join_prefix_suffix(prefix, suffix)
    prefix = prefix.to_s
    suffix = suffix.to_s
    return self.map{|item| prefix + item.to_s + suffix}.ruby_join()
  end
# Concatenate the items by joining using a prefix string and suffix string.
#
# @return [String] concatenated string
#
# @example
#   list=['a','b','c']
#   list.join("[","]") => "[a][b][c]"
#
Concatenate the items by joining using a prefix string and suffix string.
Concatenate the items by joining using a prefix string and suffix string .
def join_prefix_suffix(prefix, suffix)
    prefix = prefix.to_s
    suffix = suffix.to_s
    return self.map{|item| prefix + item.to_s + suffix}.ruby_join()
  end
def join_prefix_suffix ( prefix , suffix ) prefix = prefix . to_s suffix = suffix . to_s return self . map { | item | prefix + item . to_s + suffix } . ruby_join ( ) end
Concatenate the items by joining using a prefix string and suffix string.
Concatenate the items by joining using a prefix string and suffix string .
None
String
prefix
suffix
example
None