Class | Parslet::Source |
In: |
lib/parslet/source.rb
lib/parslet/source/line_cache.rb |
Parent: | Object |
Wraps the input IO to parslet. The interface defined by this class is smaller than what IO offers, but enhances it with a column and line method for the current position.
Returns a <line, column> tuple for the given position. If no position is given, line/column information is returned for the current position given by pos.