class Subtitles::Caption
- Subtitles::Caption
- Reference
- Object
Overview
An intermediary format to store the data in while converting from one format to another.
Included Modules
- JSON::Serializable
Defined in:
caption.crConstructors
- .new(start, end __arg0, duration, content, text)
- .new(pull : ::JSON::PullParser)
-
.new(*, start, end __arg1, content, text)
Automatically calculate the duration value.
-
.new(*, start, duration, content, text)
Automatically caluculate the end value.
Instance Method Summary
- #content : String
- #content=(content : String)
- #data : Hash(String, String)?
- #data=(data : Hash(String, String)?)
- #duration : Time::Span
- #duration=(duration : Time::Span)
- #end : Time::Span
- #end=(end __arg0 : Time::Span)
- #start : Time::Span
- #start=(start : Time::Span)
- #text : String
- #text=(text : String)