Object
Encapsules the concept of a position inside a string.
# File lib/parslet/position.rb, line 9 def initialize string, bytepos @string = string @bytepos = bytepos end
# File lib/parslet/position.rb, line 18 def <=> b self.bytepos <=> b.bytepos end
# File lib/parslet/position.rb, line 14 def charpos @string.byteslice(0, @bytepos).size end
[Validate]
Generated with the Darkfish Rdoc Generator 2.