Class: Tomago::ProjectGenerator

Inherits:
Object
  • Object
show all
Includes:
ProjectHelpers
Defined in:
lib/tomago/project_generator.rb

Instance Attribute Summary

Attributes included from ProjectHelpers

#project_name

Instance Method Summary collapse

Methods included from ProjectHelpers

#ensure_tomago_dir, #launch_editor, #project_file

Constructor Details

#initialize(name) ⇒ ProjectGenerator

Returns a new instance of ProjectGenerator.



5
6
7
8
9
10
# File 'lib/tomago/project_generator.rb', line 5

def initialize(name)
  @project_name = name
  ensure_tomago_dir
  generate_project_file
  launch_editor
end