Sha256: 4271df0a6f597ba1ca4fd70a4c3cd0524cc163b929a2dcb8c5563a284041348e

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

module Gator
  class Generator < Task
    def init
    end
  end
  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

1 entries across 1 versions & 1 rubygems

Version Path
gator-0.0.21.pre lib/gator/generators/generator.rb