Class: Gio::UnixOutputStream

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#close_fdTrueClass

Returns whether the file descriptor of stream will be closed when the stream is closed.

Returns:

  • (TrueClass)

    true if the file descriptor is closed when done

#close_fd=(close_fd) ⇒ TrueClass

Whether to close the file descriptor when the stream is closed.

Parameters:

  • close_fd (TrueClass)

Returns:

  • (TrueClass)

    close-fd

  • (TrueClass)

    close-fd

#close_fd?TrueClass

Whether to close the file descriptor when the stream is closed.

Returns:

  • (TrueClass)

    close-fd

#fdInteger

The file descriptor that the stream writes to.

Returns:

  • (Integer)

    fd

#fd=(fd) ⇒ Integer

The file descriptor that the stream writes to.

Parameters:

  • fd (Integer)

Returns:

  • (Integer)

    fd

  • (Integer)

    fd

#new(fd, close_fd) ⇒ Gio::OutputStream

Creates a new GUnix::OutputStream for the given fd.

If close_fd, is true, the file descriptor will be closed when the output stream is destroyed.

Parameters:

  • fd (Integer)

    a UNIX file descriptor

  • close_fd (TrueClass)

    true to close the file descriptor when done

Returns: