class Cronic::Or

Overview

Holds either an Or / maybe clause for use with matching. If the maybe flag is set, then none of the items are required to match.

Defined in:

cronic/definition.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(items : OrSeqType, maybe : Bool = false) #

[View source]

Class Method Detail

def self.maybe(*items) #

Factory method to make an Or/Maybe from one..N args


[View source]
def self.or(*items) #

Factory method to make an Or from one..N args


[View source]

Instance Method Detail

def items : Array(Cronic::Grabber.class) | Array(Cronic::Or | Cronic::Repeater.class) | Array(Cronic::Or | Cronic::RepeaterTime.class) | Array(Cronic::Or | Cronic::Scalar.class) | Array(Cronic::Or | Cronic::Tag.class) | Array(Cronic::Repeater.class) | Array(Cronic::RepeaterDayPortion.class) | Array(Cronic::RepeaterTime.class) | Array(Cronic::Scalar.class) | Array(Cronic::Separator.class) | Array(Cronic::SeparatorAnd.class) | Array(Cronic::SeparatorAt.class) | Array(Cronic::SeparatorDash.class) | Array(Cronic::SeparatorOn.class) | Array(Cronic::SeparatorSlash.class) | Array(Cronic::Tag.class) | Array(Cronic::TimeZone.class) #

[View source]
def maybe? : Bool #

[View source]