struct

V4L2::Fract

Inherits Struct < Value < Object

Represents a fractional value of two integers.

Constructors

new(numerator : UInt32, denominator : UInt32)
Source
new(fract_struct : Linux::V4L2Fract)

Initializes a V4L2::Fract from a Linux::V4L2Fract struct.

Source

Instance methods

clone
Source
copy_with(numerator _numerator = @numerator, denominator _denominator = @denominator)
Source
denominator
numerator
to_f

Converts the fraction to a Float.

Source
to_s

Converts the fraction to a String.

Source
to_unsafe

Converts the fraction back into a Linux::V4L2Fract.

Source