# Port Classes

## `class TMail::Port`

TMail::Port is the abstruction of mail source.

### Instance Methods

`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)` -> `TMail::FilePort`

  filename: String

  creates new TMail::FilePort object.

`filename` -> `String`

  returns file name which this port is wrapping.

## `class TMail::StringPort < TMail::Port`

### Class Methods

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

  src: String

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