Class: PlaySolder::Swf
Constant Summary collapse
- EXTENSIONS =
[ ".swf" ]
Instance Attribute Summary
Attributes inherited from Fake
Instance Method Summary collapse
Methods inherited from Fake
#escaped_faked_file, #extension, #faked_file, for_path, #initialize, #text
Constructor Details
This class inherits a constructor from PlaySolder::Fake
Instance Method Details
#generate ⇒ Object
5 6 7 8 9 10 |
# File 'lib/play_solder/swf.rb', line 5 def generate return faked_file if File.exist?(faked_file) swf = File.join(File.dirname(__FILE__), "..", "..", "placeholder.swf") FileUtils.copy(swf, faked_file) faked_file end |
#mime_type ⇒ Object
12 13 14 |
# File 'lib/play_solder/swf.rb', line 12 def mime_type "application/x-shockwave-flash" end |