Class: CompilerOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/flex-compiler/compiler_options.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CompilerOptions

provides a set of defaults a hash of options



4
5
6
# File 'lib/flex-compiler/compiler_options.rb', line 4

def initialize( options )
  @options = options
end

Instance Method Details

#applicationObject



38
39
40
# File 'lib/flex-compiler/compiler_options.rb', line 38

def application
  @options[:application] || nil
end

#flex_homeObject

required



10
11
12
# File 'lib/flex-compiler/compiler_options.rb', line 10

def flex_home
  @options[:flex_home]
end

#ignore_filesObject



42
43
44
# File 'lib/flex-compiler/compiler_options.rb', line 42

def ignore_files
  @options[:ignore_files] || []
end

#libsObject



34
35
36
# File 'lib/flex-compiler/compiler_options.rb', line 34

def libs
  @options[:libs] || ["libs"]  
end

#locale_dirObject



26
27
28
# File 'lib/flex-compiler/compiler_options.rb', line 26

def locale_dir
  @options[:locale_dir] || "locale"
end

#output_folderObject



14
15
16
# File 'lib/flex-compiler/compiler_options.rb', line 14

def output_folder
  @options[:output_folder] || "bin"
end

#output_nameObject



18
19
20
# File 'lib/flex-compiler/compiler_options.rb', line 18

def output_name 
  @options[:output_name] || File.basename(Dir.pwd)
end

#src_dirObject



22
23
24
# File 'lib/flex-compiler/compiler_options.rb', line 22

def src_dir
  @options[:src_dir] || "src"
end

#test_modeObject



30
31
32
# File 'lib/flex-compiler/compiler_options.rb', line 30

def test_mode
  @options[:test_mode] || false
end