struct

OpenGLBindingGenerator::Version

Inherits Comparable < Struct < Value < Object

Version of an API.

Constructors

new(major : Int32, minor : Int32)

Creates the version.

Source

Class methods

parse(version_string)

Parses a version string.

Source

Instance methods

<=>(other : self)

Compares to another version.

Source
major

Major version number.

Source
minor

Minor version number.

Source
semver(patch = 0)

Corresponding semantic version.

Source
to_s(io : IO) : Nil

Produces a string representation of the version.

Source