Consistency: rename #add_timestamp_component

Removes the add_ prefix for consistency with the other methods in
WebVTT::Builder
このコミットが含まれているのは:
syeopite 2023-08-28 23:14:25 -07:00
コミット a999438ae4
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: A73C186DA3955A1A
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -15,14 +15,14 @@ module WebVTT
end
private def timestamp(start_time : Time::Span, end_time : Time::Span)
add_timestamp_component(start_time)
timestamp_component(start_time)
@io << " --> "
add_timestamp_component(end_time)
timestamp_component(end_time)
@io << '\n'
end
private def add_timestamp_component(timestamp : Time::Span)
private def timestamp_component(timestamp : Time::Span)
@io << timestamp.hours.to_s.rjust(2, '0')
@io << ':' << timestamp.minutes.to_s.rjust(2, '0')
@io << ':' << timestamp.seconds.to_s.rjust(2, '0')