class Subtitles::Caption

Overview

An intermediary format to store the data in while converting from one format to another.

Included Modules

Defined in:

caption.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(start, end __arg0, duration, content, text) #

[View source]
def self.new(pull : ::JSON::PullParser) #

[View source]
def self.new(*, start, end __arg1, content, text) #

Automatically calculate the duration value.


[View source]
def self.new(*, start, duration, content, text) #

Automatically caluculate the end value.


[View source]

Instance Method Detail

def content : String #

[View source]
def content=(content : String) #

[View source]
def data : Hash(String, String)? #

[View source]
def data=(data : Hash(String, String)?) #

[View source]
def duration : Time::Span #

[View source]
def duration=(duration : Time::Span) #

[View source]
def end : Time::Span #

[View source]
def end=(end __arg0 : Time::Span) #

[View source]
def start : Time::Span #

[View source]
def start=(start : Time::Span) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]