A custom InputMethod class used by XMP for evaluating string io.

Attributes
Read

Returns the encoding of last expression printed by puts.

Class Methods

Creates a new StringInputMethod object

Instance Methods

Whether there are any expressions left in this printer.

Reads the next expression from this printer.

See IO#gets for more information.

Concatenates all expressions in this printer, separated by newlines.

An Encoding::CompatibilityError is raised of the given exps‘s encoding doesn’t match the previous expression evaluated.