lib/review/latexindex.rb in review-2.3.0 vs lib/review/latexindex.rb in review-2.4.0

- old
+ new

@@ -1,20 +1,16 @@ +# Copyright (c) 2017 Minero Aoki, Kenshi Muto +# 2002-2006 Minero Aoki # -# $Id: latexindex.rb 2204 2006-03-18 06:10:26Z aamine $ -# -# Copyright (c) 2002-2006 Minero Aoki -# # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. # For details of the GNU LGPL, see the file "COPYING". # module ReVIEW - class LaTeXIndex - def load(path) table = {} File.foreach(path) do |line| key, value = *line.strip.split(/\t+/, 2) table[key.sub(/\A%/, '')] = value @@ -27,9 +23,7 @@ end def [](key) @table.fetch(key) end - end - end