A directive in the pack template language.

Constants

The descriptions of the various types of endianness.

The descriptions of the various types of signedness.

The descriptions of the various types of sizes.

Attributes
Read

A symbol representing the version of Ruby.

Read

A symbol representing whether or not we are packing or unpacking.

Read

A byteslice of the source string that this directive represents.

Read

The type of the directive.

Read

The type of signedness of the directive.

Read

The type of endianness of the directive.

Read

The size of the directive.

The length type of this directive (used for integers).

Read

The length of this directive (used for integers).

Class Methods

Initialize a new directive with the given values.

Instance Methods

Provide a human-readable description of the directive.