Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
token_pos(byte_offset)
public
Calculates the column (by character) and line of the current token based on
byte_offset.
# File lib/rdoc/markup/parser.rb, line 541
def token_pos byte_offset
offset = char_pos byte_offset
[offset - @line_pos, @line]
end