Sha256: a31ca8e943292fc250841d356ae475253d932b1dd3fcd0dc0c781f22b5125497
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
module KinneyClipHelper def siskel_path(opts={}) path_filename = opts[:filename] || filename url = 'http://siskel.lib.ncsu.edu/SLI' name = path_filename.split('-').first url = File.join(url, name, path_filename, path_filename) if !opts[:extension].blank? extension = '.' + opts[:extension] if !opts[:extension].include?('.') url + extension else url end end # def png # siskel_path({:extension => 'png'}) # end # def mp4 # siskel_path({:extension => 'mp4'}) # end # def webm # siskel_path({:extension => 'webm'}) # end # URL to webvtt file # def vtt #closed_captioning vtt file # siskel_path({:extension => 'vtt'}) # end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | test/dummy/app/helpers/kinney_clip_helper.rb |
kinney-0.0.2 | test/dummy/app/helpers/kinney_clip_helper.rb |
kinney-0.0.1 | test/dummy/app/helpers/kinney_clip_helper.rb |