Class: Airake::Commands::FlashPlayer
- Defined in:
- lib/airake/commands/flash_player.rb
Overview
Flash Player (standalone)
In progress, untested.
Instance Attribute Summary collapse
-
#swf_path ⇒ Object
readonly
Returns the value of attribute swf_path.
Instance Method Summary collapse
-
#generate ⇒ Object
The flash player command.
-
#initialize(options = {}) ⇒ FlashPlayer
constructor
Create Flash Player command.
Methods inherited from Base
#assert_not_blank, #assert_required, #escape, #include_classes, #library_paths, #process, #relative_path, #source_paths, #windows?, #with_options
Constructor Details
#initialize(options = {}) ⇒ FlashPlayer
Create Flash Player command.
Options
flash_player
-
Path to flash player, defaults to ‘/Applications/Flash Player.app/Contents/MacOS/Flash Player’
swf_path
-
Path to swf
19 20 21 |
# File 'lib/airake/commands/flash_player.rb', line 19 def initialize( = {}) (, { :flash_player => "/Applications/Flash Player.app/Contents/MacOS/Flash Player" }) end |
Instance Attribute Details
#swf_path ⇒ Object (readonly)
Returns the value of attribute swf_path.
11 12 13 |
# File 'lib/airake/commands/flash_player.rb', line 11 def swf_path @swf_path end |
Instance Method Details
#generate ⇒ Object
The flash player command
24 25 26 27 28 |
# File 'lib/airake/commands/flash_player.rb', line 24 def generate command = [] command << @swf_path process(command) end |