_plugins/data.rb
def pad_left(str, len, pad = " ")
      pad_by = len - str.size
      if pad_by > 0
        return pad * pad_by + str
      end
      str
    end
# pad the provided string with the provided padding character (or a
# space, by default) if its length is less than a given length
pad the provided string with the provided padding character (or a
space, by default) if its length is less than a given length
pad the provided string with the provided padding character ( or a space by default ) if its length is less than a given length
def pad_left(str, len, pad = " ")
      pad_by = len - str.size
      if pad_by > 0
        return pad * pad_by + str
      end
      str
    end
def pad_left ( str , len , pad = " " ) pad_by = len - str . size if pad_by > 0 return pad * pad_by + str end str end
pad the provided string with the provided padding character (or a
space, by default) if its length is less than a given length
pad the provided string with the provided padding character ( or a space by default ) if its length is less than a given length
str
len
pad