class Cronic::Sequence

Overview

A matching sequence. The sequence is an Array of class names or Or / maybe clauses. Used in conjunction with SeqMatcher

Defined in:

cronic/definition.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(items : SeqType) #

[View source]

Class Method Detail

def self.seq(*items) #

Factory method to make a Sequence


[View source]

Instance Method Detail

def [](arg) #

[View source]
def empty? #

Returns true if the Sequence is empty


[View source]
def first #

Get first element of the sequence


[View source]
def items : Array(Cronic::Or | Cronic::Repeater.class) | Array(Cronic::Or | Cronic::Scalar.class) | Array(Cronic::Or | Cronic::Tag.class) | Array(Cronic::OrdinalDay.class) | Array(Cronic::Repeater.class) | Array(Cronic::Separator.class) | Array(Cronic::SeparatorAt.class) | Array(Cronic::Tag.class) #

[View source]
def rest #

[View source]