Interface for Walnut Input Drivers

Synopsis

Input drivers require elements which any IO object would generally mandate.

The essential ability to read, and to test for an end of input.

Methods

A basic input driver will require the following as a bare minimum:

  • read() -- An alias for gets.
  • eof?() -- Check for a closed stream.
  • gets() -- Read one line from the source.
  • close() -- Close the stream.

Driver Implementations

  • Walnut::Input::Readline