Module: SwfUtil
- Defined in:
- lib/swfheader/swf-util.rb,
lib/swfheader/swf-header.rb,
lib/swfheader/packed-bit-obj.rb,
lib/swfheader/swf-compressor.rb,
lib/swfheader/swf-compression.rb,
lib/swfheader/swf-decompressor.rb
Defined Under Namespace
Classes: PackedBitObj, SWFCompression, SWFCompressor, SWFDecompressor, SWFHeader
Class Method Summary
collapse
Class Method Details
.compress_swf(from, to = from.sub(/\.swf/,'_comp.swf')) ⇒ Object
6
7
8
9
|
# File 'lib/swfheader/swf-util.rb', line 6
def self.compress_swf(from,to=from.sub(/\.swf/,'_comp.swf'))
raise ArgumentError.new("file is nil",caller) if from.nil?
SWFCompressor.new(from,to)
end
|
.decompress_swf(from, to = from.sub(/\.swf/,'de_comp.swf')) ⇒ Object
10
11
12
13
|
# File 'lib/swfheader/swf-util.rb', line 10
def self.decompress_swf(from,to=from.sub(/\.swf/,'de_comp.swf'))
raise ArgumentError.new("file is nil",caller) if from.nil?
SWFDecompressor.new(from,to)
end
|
2
3
4
5
|
# File 'lib/swfheader/swf-util.rb', line 2
def self.(file)
raise ArgumentError.new("file is nil",caller) if file.nil?
SWFHeader.new(file)
end
|