Class: Spinebox::Generator::Application
- Inherits:
-
Object
- Object
- Spinebox::Generator::Application
- Defined in:
- lib/spinebox/generator.rb
Overview
Generates an application skeleton
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(app) ⇒ Application
constructor
Creates a new app and copies the templates to the newly created directory.
Constructor Details
#initialize(app) ⇒ Application
Creates a new app and copies the templates to the newly created directory
9 10 11 12 13 |
# File 'lib/spinebox/generator.rb', line 9 def initialize app @app = app create_app_directory copy_templates end |
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/spinebox/generator.rb', line 6 def root @root end |