Class Sprout::MXMLCDocument
In: bundles/as3/lib/sprout/tasks/mxmlc_document.rb
Parent: MXMLCHelper

The MXMLCDocument helper wraps up the asdoc task using either a Singleton or provided ProjectModel instance.

The simple case that uses a Singleton ProjectModel:

  document :asdoc

Using a ProjectModel instance:

  project_model :model

  document :asdoc => :model

Configuring the proxy ASDocTask

  document :asdoc do |t|
    t.link_report = 'LinkReport.rpt'
  end

Methods

create_input   new  

Public Class methods

[Source]

# File bundles/as3/lib/sprout/tasks/mxmlc_document.rb, line 22
    def initialize(args, &block)
      super
      
      asdoc task_name do |t|
        configure_mxmlc(t, true)
        t.output = model.doc_dir
        t.doc_classes = input
        t.main_title = model.project_name
        yield t if block_given?
      end
      
    end

Public Instance methods

[Source]

# File bundles/as3/lib/sprout/tasks/mxmlc_document.rb, line 35
    def create_input
      return File.basename(super).split('.')[0]
    end

[Validate]