lib/flvedit/flv/file.rb in flvedit-0.6.3 vs lib/flvedit/flv/file.rb in flvedit-0.6.4

- old
+ new

@@ -9,11 +9,11 @@ h= read(Header) yield h super(Tag, &block) end - def self.open(*arg) - file = ::File.open(*arg) + def self.open(fn, mode = "rb") + file = ::File.open(fn, mode) begin file = return_value = file.packed.extend(File) rescue Exception file.close raise \ No newline at end of file