jweinst1
9/15/2015 - 1:18 AM

cut a portion of a string in ruby

cut a portion of a string in ruby

def cutstring(str, start, stop)
  str[start..stop] = ""
end