class WordWrap::Wrapper

def split_line(line, width)

def split_line(line, width)
  at = line.index /\s/
  last_at = at
  while at != nil && at < width
    last_at = at
    at = line.index /\s/, last_at + 1
  end
  if last_at == nil
    [line]
  else
    [line[0,last_at], line[last_at+1, line.length]]
  end
end