# File lib/parslet/source.rb, line 12 def initialize(io) if io.respond_to? :to_str io = StringIO.new(io) end @io = io @line_cache = LineCache.new end