Class: Spinebox::Generator::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/spinebox/generator.rb

Overview

Generates an application skeleton

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rootObject (readonly)

Returns the value of attribute root.



6
7
8
# File 'lib/spinebox/generator.rb', line 6

def root
  @root
end