Sha256: faf5d6670d87aaad7c2aa88e15943fe4773ddbc837fef328a2ac5b27d1648253

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

#!/usr/bin/env ruby

require "substitute/line"

options = {}

options[:srt] = true if ARGV[0] == "srt"

STDOUT.puts "WEBVTT" unless options[:srt]

while (line = STDIN.gets)
  STDOUT.puts Substitute::Line.new(line, options)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
substitute-0.2.0 bin/substitute