Sha256: 209387d192b485c82a52d4c9fc548389cb12df94700ab9668de8673f8b6273cb
Contents?: true
Size: 1021 Bytes
Versions: 6
Compression:
Stored size: 1021 Bytes
Contents
# 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/templates/generator.rb 21975 2006-02-19T22:24:11.182512Z pouillar $ class Uttk::Generators::<%= class_name %>Generator < Uttk::Generators::Generator def manifest # FIXME do not ignore class_path record do |m| # Check for class naming collisions. m.class_collisions class_path, class_name, "Uttk::<%= module_name %>::#{class_name}" # Source and test directories. m.directory root/lib/uttk/<%= dir_name %> m.directory root/test/unit/<%= dir_name %> # Source and test templates. m.template '<%= file_name %>.rb', root/lib/uttk/<%= dir_name %>/"#{class_name}.rb" m.template 'unit_test.rb', root/test/unit/<%= dir_name %>/"#{file_name}_test.rb" end end def module_name :<%= module_name %> end end # class Uttk::Generators::<%= class_name %>Generator
Version data entries
6 entries across 6 versions & 1 rubygems