abstract struct TCal::Period(T)

Overview

An interval between two points of the same type.

Direct Known Subclasses

Defined in:

t_cal/period.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(start : T, end __arg0 : T) #

[View source]

Class Method Detail

def self.merge(periods : Array(U)) : Array(U) forall U #

Returns a copy of the given array where consecutive periods of the same type that are contiguous or overlapping are merged together.


[View source]

Instance Method Detail

def end : T #

[View source]
def start : T #

[View source]