Sha256: 63b8d14c096c767d04c434358773399be3510d346986f8893f2fbdb9f3e7cd48

Contents?: true

Size: 932 Bytes

Versions: 6

Compression:

Stored size: 932 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/filter_generator.rb 21975 2006-02-19T22:24:11.182512Z pouillar  $

class Uttk::Generators::FilterGenerator < 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::Filters::#{class_name}"

      # Source and test directories.
      m.directory root/lib/uttk/filters
      m.directory root/test/unit/filters

      # Source and test templates.
      m.template 'filter.rb', root/lib/uttk/filters/"#{class_name}.rb"
      m.template 'unit_test.rb', root/test/unit/filters/"#{file_name}_test.rb"
    end
  end

  def module_name
    :Filters
  end

end # class Uttk::Generators::FilterGenerator

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uttk-0.3.5.0 lib/uttk/generators/filter_generator.rb
uttk-0.3.6.1 lib/uttk/generators/filter_generator.rb
uttk-0.3.1.2 lib/uttk/generators/filter_generator.rb
uttk-0.4.5.0 lib/uttk/generators/filter_generator.rb
uttk-0.4.6.1 lib/uttk/generators/filter_generator.rb
uttk-0.4.6.2 lib/uttk/generators/filter_generator.rb