class Cronic::Ordinal

Defined in:

cronic/tags/ordinal.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), ambiguous_year_future_bias : Int32 = 50, **options) : Void #

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


[View source]

Instance Method Detail

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]