lib/aviglitch/frames.rb in aviglitch-0.0.3 vs lib/aviglitch/frames.rb in aviglitch-0.1.0
- old
+ new
@@ -1,7 +1,5 @@
-require 'stringio'
-
module AviGlitch
# Frames provides the interface to access each frame
# in the AVI file.
# It is implemented as Enumerable. You can access this object
@@ -228,10 +226,11 @@
end
##
# Removes frame(s) at the given index or the range (same as []).
# Inserts the given Frame or Frames's contents into the removed index.
- def []= *args, value
+ def []= *args
+ value = args.pop
b, l = get_beginning_and_length *args
ll = l.nil? ? 1 : l
head = self.slice(0, b)
rest = self.slice((b + ll)..-1)
if l.nil? || value.kind_of?(Frame)