Method: AsProject::Project#initialize
- Defined in:
- lib/project.rb
#initialize(dir = nil) ⇒ Project
Returns a new instance of Project.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/project.rb', line 18 def initialize(dir=nil) @project_name = nil @source_dir = @@DEFAULT_SOURCE_DIR @test_dir = @@DEFAULT_TEST_DIR @library_dir = @@DEFAULT_LIBRARY_DIR @binary_dir = @@DEFAULT_BINARY_DIR @default_templates = @@DEFAULT_AS3_TEMPLATES @class_path = [@source_dir, @test_dir] if(dir.nil?) @execution_dir = Dir.pwd else @execution_dir = dir end super(@execution_dir) @project_path = current_project end |