class String

def line_of(index)

def line_of(index)
  self[0...index].count("\n") + 1
end