Class: Gio::UnixInputStream

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 reads from.

Returns:

  • (Integer)

    fd

#fd=(fd) ⇒ Integer

The file descriptor that the stream reads from.

Parameters:

  • fd (Integer)

Returns:

  • (Integer)

    fd

  • (Integer)

    fd

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

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

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

Parameters:

  • fd (Integer)

    a UNIX file descriptor

  • close_fd (TrueClass)

    true to close the file descriptor when done

Returns: