FoscAnnotatedTimespan

Returns a FoscAnnotatedTimespan.


Description

An annotated timespan.


Attributes Summary

Instance Properties

annotation Gets annotated timespan annotation.
annotation_ Sets annotated timespan annotation.

Instance Methods: Special Methods

asCompileString Formats timespan.


Usage

  1. Example

    t = FoscAnnotatedTimespan(1/4, 7/8, annotation: #['a', 'b', 'c']);
    t.startOffset.str;
    t.stopOffset.str;
    t.annotation;
    [ 'a', 'b', 'c' ]


Instance Properties


annotation

Gets annotated timespan annotation.

Returns arbitrary object.


annotation_

Sets annotated timespan annotation.


Instance Methods: Special Methods


asCompileString

Formats timespan.

Returns string.

  1. Example

    FoscAnnotatedTimespan(1, 3).cs;
    FoscAnnotatedTimespan(1/1, 3/1)
    FoscAnnotatedTimespan(1, 3, annotation: 'foo').cs;
    FoscAnnotatedTimespan(1/1, 3/1, 'foo')