Class: PlaySolder::Swf

Inherits:
Fake
  • Object
show all
Defined in:
lib/play_solder/swf.rb

Constant Summary collapse

EXTENSIONS =
[ ".swf" ]

Instance Attribute Summary

Attributes inherited from Fake

#path

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

#generateObject



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_typeObject



12
13
14
# File 'lib/play_solder/swf.rb', line 12

def mime_type
  "application/x-shockwave-flash"
end