Ruby: RFile Struct Reference

Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)

Data Fields
RFile Struct Reference

Ruby's File and IO. More...

`#include <rfile.h>`

## Data Fields
struct RBasic | basic
| Basic part, including flags and class.
struct rb_io * | fptr
| IO's specific fields.

## Detailed Description

Ruby's File and IO.

Ruby's IO are not just file descriptors. They have buffers. They also have encodings. Various information are controlled using this struct.

Definition at line 35 of file rfile.h.

## Field Documentation

## ◆ basic

struct RBasic RFile::basic

Basic part, including flags and class.

Definition at line 38 of file rfile.h.

## ◆ fptr

struct rb_io* RFile::fptr

IO's specific fields.

Definition at line 41 of file rfile.h.

The documentation for this struct was generated from the following file:

- include/ruby/internal/core/rfile.h