Sha256: 8e6add257e2cf80cefa6e356a8d39ee5be55a1bcc994606b6b9ae84ad61614a8

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

class Gator
  module ActAsTemplateGenerator

    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods

      def template_root
        nil
      end

      def source_paths
        unless @template_roots
          @template_roots = []
          #@template_roots += Gator::Project.project.template_roots if Gator::Project.project
          #@template_roots << Gator::Util.generator_template_root
          @template_roots << template_root if template_root
        end
        @template_roots
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gator-0.0.25.pre lib/gator/plugins/generators/act_as_template_generator.rb
gator-0.0.24.pre lib/gator/plugins/generators/act_as_template_generator.rb
gator-0.0.23.pre lib/gator/plugins/generators/act_as_template_generator.rb