Class: ClassGenerator
- Inherits:
-
Sprout::Generator::NamedBase
- Object
- Sprout::Generator::NamedBase
- ClassGenerator
- Defined in:
- lib/sprout/generators/class/class_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#manifest ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sprout/generators/class/class_generator.rb', line 4 def manifest record do |m| # m.class_collisions class_dir, "#{class_name}Controller", "#{class_name}ControllerTest", "#{class_name}Helper" if(!user_requested_test) m.directory full_class_dir m.template 'Class.as', full_class_path end m.directory full_test_dir m.template 'TestCase.as', full_test_case_path m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force end end |