Module: SwfConverter::ClassMethods

Defined in:
lib/swf_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#swf_conversion_engineObject (readonly)

Returns the value of attribute swf_conversion_engine.



5
6
7
# File 'lib/swf_converter.rb', line 5

def swf_conversion_engine
  @swf_conversion_engine
end

#swf_conversion_optionsObject (readonly)

Returns the value of attribute swf_conversion_options.



5
6
7
# File 'lib/swf_converter.rb', line 5

def swf_conversion_options
  @swf_conversion_options
end

Instance Method Details

#converts_swfs(options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/swf_converter.rb', line 7

def converts_swfs(options={})
  options = options.dup
  engine_class = options.delete(:with)
  @swf_conversion_engine = engine_class.new if engine_class
  @swf_conversion_engine.options = options
end