class Cronic::Repeater

Defined in:

cronic/tags/repeater.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Cronic::Tag

start=(time : Time) start=, type : Int32 | String | Symbol type, type=(type : Int32 | String | Symbol) type=, width : Int32? width, width=(width : Int32 | Nil) width=

Constructor methods inherited from class Cronic::Tag

new(type : TagType, width : Int32 | Nil = nil, **options) new

Class methods inherited from class Cronic::Tag

scan(tokens, **options) scan

Class Method Detail

def self.scan(tokens : Array(Token), **options) : Void #

Scan an Array of Token objects and apply any necessary Repeater tags to each token.


[View source]
def self.scan_for_day_names(token : Token, **kwargs) : RepeaterDayName | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_day_portions(token : Token, **kwargs) : RepeaterDayPortion | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_month_names(token : Token, **kwargs) : RepeaterMonthName | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_quarter_names(token : Token, **kwargs) : RepeaterQuarterName | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_season_names(token : Token, **kwargs) : RepeaterSeasonName | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_times(token : Token, **kwargs) : RepeaterTime | Nil #

token - The Token object we want to scan.


[View source]
def self.scan_for_units(token : Token, **kwargs) #

token - The Token object we want to scan.


[View source]

Instance Method Detail

def <=>(other) #

Compare width property of two Repeaters


[View source]
def next(pointer) #

Returns the next occurance of this repeatable.


[View source]
def this(pointer) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def width #

Returns the width (in seconds or months) of this repeatable.


[View source]