Sha256: a4163ef2bb0197ea00bac092cba1e943f38dc4d26f04ad78f27539a8812aa5e5
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# BibTeX-Ruby # Copyright (C) 2010-2011 Sylvester Keil <http://sylvester.keil.or.at> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. #++ # # This file contains extensions to the Ruby core # class StringScanner alias orig_scan_until scan_until def pre_match_offset(offset) self.pre_match[offset..-1] end # Like the original +scan_until+ but sets the start of `pre_match' to the # current position not to zero def scan_until(pattern) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bibtex-ruby-1.1.0 | lib/extensions/core.rb |
bibtex-ruby-1.0.0 | lib/extensions/core.rb |