Class Uttk::Generators::GeneratorGenerator
In: lib/uttk/generators/generator_generator.rb
Parent: Uttk::Generators::Generator
Copyright:Copyright (c) 2005 Uttk Team. All rights reserved.
Author:Nicolas Pouillard <ertai@lrde.epita.fr>.
License:LGPL
Revision:$Id: /w/fey/uttk/trunk/lib/uttk/generators/generator_generator.rb 21975 2006-02-19T22:24:11.182512Z pouillar $

Methods

Public Instance methods

[Source]

# File lib/uttk/generators/generator_generator.rb, line 8
  def manifest
    # FIXME do not ignore class_path
    record do |m|
      # Check for class naming collisions.
      m.class_collisions class_path, class_name,
                         "Uttk::Generators::#{class_name}Generator"

      m.directory root/lib/uttk/generators

      m.template 'generator.rb',
                 root/lib/uttk/generators/"#{file_name}_generator.rb"
    end
  end

[Source]

# File lib/uttk/generators/generator_generator.rb, line 22
  def module_name
    class_name.pluralize
  end

[Validate]