Method: WebVTT.read

Defined in:
lib/vtt/vtt.rb

.read(f) ⇒ Object

读取文件



9
10
11
12
13
14
15
# File 'lib/vtt/vtt.rb', line 9

def self.read(f)
	if is_vtt? f
		Smalt.new(f)
	else
		raise MalformedFile, "Not a valid VTT file"
	end
end