Class: CompilerOptions
- Inherits:
-
Object
- Object
- CompilerOptions
- Defined in:
- lib/flex-compiler/compiler_options.rb
Instance Method Summary collapse
- #application ⇒ Object
-
#flex_home ⇒ Object
required.
- #ignore_files ⇒ Object
-
#initialize(options) ⇒ CompilerOptions
constructor
provides a set of defaults a hash of options.
- #libs ⇒ Object
- #locale_dir ⇒ Object
- #output_folder ⇒ Object
- #output_name ⇒ Object
- #src_dir ⇒ Object
- #test_mode ⇒ Object
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 = end |
Instance Method Details
#application ⇒ Object
38 39 40 |
# File 'lib/flex-compiler/compiler_options.rb', line 38 def application @options[:application] || nil end |
#flex_home ⇒ Object
required
10 11 12 |
# File 'lib/flex-compiler/compiler_options.rb', line 10 def flex_home @options[:flex_home] end |
#ignore_files ⇒ Object
42 43 44 |
# File 'lib/flex-compiler/compiler_options.rb', line 42 def ignore_files @options[:ignore_files] || [] end |
#libs ⇒ Object
34 35 36 |
# File 'lib/flex-compiler/compiler_options.rb', line 34 def libs @options[:libs] || ["libs"] end |
#locale_dir ⇒ Object
26 27 28 |
# File 'lib/flex-compiler/compiler_options.rb', line 26 def locale_dir @options[:locale_dir] || "locale" end |
#output_folder ⇒ Object
14 15 16 |
# File 'lib/flex-compiler/compiler_options.rb', line 14 def output_folder @options[:output_folder] || "bin" end |
#output_name ⇒ Object
18 19 20 |
# File 'lib/flex-compiler/compiler_options.rb', line 18 def output_name @options[:output_name] || File.basename(Dir.pwd) end |
#src_dir ⇒ Object
22 23 24 |
# File 'lib/flex-compiler/compiler_options.rb', line 22 def src_dir @options[:src_dir] || "src" end |
#test_mode ⇒ Object
30 31 32 |
# File 'lib/flex-compiler/compiler_options.rb', line 30 def test_mode @options[:test_mode] || false end |