Update documentation for WebVTT.build

This commit is contained in:
syeopite 2023-08-24 16:27:06 -07:00
parent d371eb50f2
commit 4e97d8ad09
No known key found for this signature in database
GPG key ID: A73C186DA3955A1A

View file

@ -44,10 +44,10 @@ module WebVTT
end
end
# Returns the resulting `String` of writing WebVTT to the yielded WebVTT::Builder
# Returns the resulting `String` of writing WebVTT to the yielded `WebVTT::Builder`
#
# ```
# string = WebVTT.build do |io|
# string = WebVTT.build do |vtt|
# vtt.cue(Time::Span.new(seconds: 1), Time::Span.new(seconds: 2), "Line 1")
# vtt.cue(Time::Span.new(seconds: 2), Time::Span.new(seconds: 3), "Line 2")
# end