class Parser::Source::Buffer

A buffer with source code. {Buffer} contains the source code itself, associated location information (name and first line), and takes care of encoding.

A source buffer is immutable once populated.

@!attribute [r] name

Buffer name. If the buffer was created from a file, the name corresponds
to relative path to the file.
@return [String] buffer name

@!attribute [r] first_line

First line of the buffer, 1 by default.
@return [Integer] first line

@api public