class

PLS::Length::Span

Inherits Reference < Object

The Span class is just a wrapper around a Time::Span. It only exists to guarantee immutability and to prevent negative timespans.

Constructors

new(seconds : Int32)
Source

Instance methods

to_i

Returns the time span in seconds.

Source
to_pls(io : IO)

Returns the time span in seconds as a String.

Source
to_s(io : IO)

Converts to String.

Source