Sha256: e54d23dfbfa3d16a43546a46a84bc4553441b2be7ed234b99b776011ec97d734
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
require "thor/actions" module Gator module AS3 class AS3ClassGenerator < Gator::Generators::Base include Gator::ProjectCommand, Thor::Actions specify "as3class", "as3c" argument :package_name, :type => :string, :desc => "The name of the package." argument :class_name, :type => :string, :desc => "The name of the class." desc "Creates an ActionScript3 Class" def self.source_root File.dirname(__FILE__) end def create_class src = project.path(:source, :main, :as3) template "AS3ClassTemplate.as.tt", File.join(src, "#{class_name}.as" ) end end Gator::Generators.add AS3ClassGenerator end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gator-0.0.8.pre | lib/__legacy/default/generators/as3_class_generator.rb |