Class: StubGenerator
- Inherits:
-
Butterfly::Stub::Base
- Object
- RubiGen::Base
- Butterfly::Stub::Base
- StubGenerator
- Defined in:
- lib/stub_generators/stub/stub_generator.rb
Instance Attribute Summary
Attributes inherited from Butterfly::Stub::Base
#author, #date, #group, #name, #target
Instance Method Summary collapse
Methods inherited from Butterfly::Stub::Base
Constructor Details
This class inherits a constructor from Butterfly::Stub::Base
Instance Method Details
#manifest ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/stub_generators/stub/stub_generator.rb', line 3 def manifest record do |m| # create templates folder m.directory "templates" # create templates m.template "generator-type_INFO", "INFO" m.template "generator-type_generator.rb", "#{name}_generator.rb" m.template "generator-type_README.txt", "templates/README.txt" end end |