Class: Sprout::MXMLCStyleSheet

Inherits:
MXMLCHelper show all
Defined in:
lib/sprout/tasks/mxmlc_stylesheet.rb

Overview

The MXMLCStylesheet helper simplifies the creation of runtime CSS stylesheet SWFs for Flex applications. This task can work using either a Singleton or provided ProjectModel instance

The simple case that uses a Singleton ProjectModel:

stylesheet :skin

Using a ProjectModel instance:

project_model :model

stylesheet :skin => :model

Configuring the proxy MXMLCTask

stylesheet :skin do |t|
  t.link_report = 'LinkReport.rpt'
end

Instance Attribute Summary

Attributes inherited from MXMLCHelper

#model, #use_fcsh

Instance Method Summary collapse

Methods inherited from MXMLCHelper

#input, #output, #prerequisites, #task_name

Constructor Details

#initialize(args, &block) ⇒ MXMLCStyleSheet

Returns a new instance of MXMLCStyleSheet.



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/sprout/tasks/mxmlc_stylesheet.rb', line 24

def initialize(args, &block)
  super
  outer = define_outer_task
  
  mxmlc output do |t|
    configure_mxmlc t
    yield t if block_given?
  end
  
  outer.prerequisites << output
  return output
end