Class: Sprout::LibraryGenerator
- Inherits:
-
Generator::Base
- Object
- Generator::Base
- Sprout::LibraryGenerator
- Defined in:
- lib/sprout/generators/library/library_generator.rb
Constant Summary
Constants included from Executable
DEFAULT_FILE_EXPRESSION, DEFAULT_PREFIX, DEFAULT_SHORT_PREFIX
Instance Attribute Summary (collapse)
-
- (String) version
Set the version string to use.
Instance Method Summary (collapse)
Methods inherited from Generator::Base
#default_search_paths, #directory, #execute, #file, #generator, inherited, #prepare_command, #resolve_template, #say, #template, #template_paths, #unexecute
Methods included from Concern
#append_features, extended, #included
Instance Attribute Details
- (String) version
Set the version string to use.
|
# File '' add_param :version, String, { :default => '0.0.1' } |
Instance Method Details
- (Object) manifest
13 14 15 16 |
# File 'lib/sprout/generators/library/library_generator.rb', line 13 def manifest template "#{input.snake_case}.gemspec", 'library.gemspec' template "#{input.snake_case}.rb", 'library.rb' end |