# File lib/treetop/ruby_extensions/string.rb, line 12
  def line_of(index)
    self[0...index].count("\n") + 1
  end