enum

IO::Seek

Inherits Enum / Comparable / Value / Object

Argument to a seek operation.

Constants

Set = 0

Seeks to an absolute location

Current = 1

Seeks to a location relative to the current location in the stream

End = 2

Seeks to a location relative to the end of the stream (you probably want a negative value for the amount)

Instance methods

current?

Returns true if this enum value equals Current

Source
end?

Returns true if this enum value equals End

Source
set?

Returns true if this enum value equals Set

Source