Class: Roda::Project::Generator
- Inherits:
-
Object
- Object
- Roda::Project::Generator
- Includes:
- Helpers::Ids, Helpers::Template
- Defined in:
- lib/roda/project/generator.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(context: MainContext.new, args: [], options: {}, dir: nil) ⇒ Generator
constructor
A new instance of Generator.
Methods included from Helpers::Ids
#api_id, #fullstack_id, #id_to_string, #minimal_id, #minitest_id, #mysql_id, #postgresql_id, #rspec_id, #sqlite_id
Methods included from Helpers::Template
#cp_dir, #cp_file, #erb_cp_dir, #erb_cp_file, #templates_root
Constructor Details
#initialize(context: MainContext.new, args: [], options: {}, dir: nil) ⇒ Generator
Returns a new instance of Generator.
7 8 9 10 11 12 |
# File 'lib/roda/project/generator.rb', line 7 def initialize(context: MainContext.new, args: [], options: {}, dir: nil) @context = context @args = args @options = @dir = dir end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/roda/project/generator.rb', line 14 def call false end |