Class: Sprout::MXMLCDebug
- Inherits:
-
MXMLCHelper
- Object
- MXMLCHelper
- Sprout::MXMLCDebug
- Defined in:
- lib/sprout/tasks/mxmlc_debug.rb
Overview
The MXMLCDebug helper wraps up the flashplayer and mxmlc tasks by using either a Singleton or provided ProjectModel instance.
The simple case that uses a Singleton ProjectModel:
debug :debug
Using a ProjectModel instance:
project_model :model
debug :debug => :model
Configuring the proxied Sprout::MXMLCTask
debug :debug do |t|
t.link_report = 'LinkReport.rpt'
end
Instance Attribute Summary
Attributes inherited from MXMLCHelper
Instance Method Summary collapse
-
#initialize(args, &block) ⇒ MXMLCDebug
constructor
A new instance of MXMLCDebug.
Methods inherited from MXMLCHelper
#input, #output, #prerequisites, #task_name
Constructor Details
#initialize(args, &block) ⇒ MXMLCDebug
Returns a new instance of MXMLCDebug.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/sprout/tasks/mxmlc_debug.rb', line 22 def initialize(args, &block) super outer_task = define_outer_task mxmlc output do |t| configure_mxmlc t configure_mxmlc_application t yield t if block_given? end define_player outer_task.prerequisites << output outer_task.prerequisites << player_task_name end |