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