lib/scissor.rb in scissor-0.1.2 vs lib/scissor.rb in scissor-0.2.0

- old
+ new

@@ -3,11 +3,15 @@ require 'scissor/fragment' require 'scissor/sound_file' require 'scissor/sequence' require 'scissor/writer' -def Scissor(*args) - Scissor::Chunk.new(*args) +def Scissor(filename_or_url = nil) + if filename_or_url && filename_or_url =~ /^http/ + Scissor::Chunk.new_from_url(filename_or_url) + else + Scissor::Chunk.new(filename_or_url) + end end require 'logger' module Scissor