Sha256: 11cb0b1a0a28671cf9d2b4d21d24ce027ea9058229e8c1b2ce3c9a036ab1d2fc

Contents?: true

Size: 939 Bytes

Versions: 17

Compression:

Stored size: 939 Bytes

Contents

module Sprout # :nodoc:

  # 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
  #
  class MXMLCDocument < MXMLCHelper
  
    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
    
    def create_input
      return File.basename(super).split('.')[0]
    end
    
  end
end

def document(args, &block)
    Sprout::MXMLCDocument.new(args, &block)
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sprout-as3-bundle-1.0.36 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.32 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.31 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.29 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.30 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.12 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.11 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.14 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.20 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.21 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.10 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-0.2.9 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.9 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.23 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.24 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.22 lib/sprout/tasks/mxmlc_document.rb
sprout-as3-bundle-1.0.8 lib/sprout/tasks/mxmlc_document.rb