class Cronic::Tag

Overview

Tokens are tagged with subclassed instances of this class when they match specific criteria.

Direct Known Subclasses

Defined in:

cronic/tag.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type : TagType, width : Int32 | Nil = nil, **options) #

stype - The Symbol type of this tag.


[View source]

Class Method Detail

def self.scan(tokens, **options) #

Scan an Array of Token objects. Returns an Array of tokens.


[View source]

Instance Method Detail

def start=(time : Time) #

Set the start Time for this Tag.


[View source]
def type : Int32 | String | Symbol #

[View source]
def type=(type : Int32 | String | Symbol) #

[View source]
def width : Int32? #

[View source]
def width=(width : Int32 | Nil) #

[View source]