类 Bundler::LockfileParser::Position
属性
column[R]
line[R]
公共类方法
new(line, column) 点击切换源代码
# File bundler/lockfile_parser.rb, line 9 def initialize(line, column) @line = line @column = column end
公共实例方法
advance!(string) 点击切换源代码
# File 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
to_s() 点击切换源代码
# File bundler/lockfile_parser.rb, line 24 def to_s "#{line}:#{column}" end