module Loofah

Strings and IO Objects as Input

The following methods accept any IO object in addition to accepting a string:

That IO object could be a file, or a socket, or a StringIO, or anything that responds to read and close.