class Cronic::Repeater
- Cronic::Repeater
- Cronic::Tag
- Reference
- Object
Defined in:
cronic/tags/repeater.crClass Method Summary
-
.scan(tokens : Array(Token), **options) : Void
Scan an Array of Token objects and apply any necessary Repeater tags to each token.
-
.scan_for_day_names(token : Token, **kwargs) : RepeaterDayName | Nil
token - The Token object we want to scan.
-
.scan_for_day_portions(token : Token, **kwargs) : RepeaterDayPortion | Nil
token - The Token object we want to scan.
-
.scan_for_month_names(token : Token, **kwargs) : RepeaterMonthName | Nil
token - The Token object we want to scan.
-
.scan_for_quarter_names(token : Token, **kwargs) : RepeaterQuarterName | Nil
token - The Token object we want to scan.
-
.scan_for_season_names(token : Token, **kwargs) : RepeaterSeasonName | Nil
token - The Token object we want to scan.
-
.scan_for_times(token : Token, **kwargs) : RepeaterTime | Nil
token - The Token object we want to scan.
-
.scan_for_units(token : Token, **kwargs)
token - The Token object we want to scan.
Instance Method Summary
-
#<=>(other)
Compare width property of two Repeaters
-
#next(pointer)
Returns the next occurance of this repeatable.
- #this(pointer)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
-
#width
Returns the width (in seconds or months) of this repeatable.
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
Scan an Array of Token objects and apply any necessary Repeater tags to each token.
token - The Token object we want to scan.
token - The Token object we want to scan.
token - The Token object we want to scan.
token - The Token object we want to scan.
token - The Token object we want to scan.
token - The Token object we want to scan.
token - The Token object we want to scan.
Instance Method Detail
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
.