Port Classes

class TMail::Port

TMail::Port is the abstruction of mail source.


ropen -> IO

opens stream for read.

wopen -> IO

opens stream for write.

aopen -> IO

opens stream for adding.

class TMail::FilePort < TMail::Port

Class Methods

new( filename: String ) -> TMail::FilePort

creates new TMail::FilePort object.

filename -> String

returns file name which this port is wrapping.

class TMail::StringPort < TMail::Port

Class Methods

new( src: String = '' ) -> TMail::StringPort

creates new TMail::StringPort object from mail source string.