Method: Bundler::LockfileParser::Position#advance!
- Defined in:
- lib/bundler/lockfile_parser.rb
#advance!(string) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/bundler/lockfile_parser.rb', line 14 def advance!(string) lines = string.count("\n") if lines > 0 @line += lines @column = string.length - string.rindex("\n") else @column += string.length end end |