Class: Synvert::Core::Configuration
- Inherits:
-
Object
- Object
- Synvert::Core::Configuration
- Defined in:
- lib/synvert/core/configuration.rb
Overview
Synvert global configuration.
Class Attribute Summary collapse
-
.number_of_workers ⇒ Integer
Number of workers.
-
.only_paths ⇒ Array<String>
Get a list of only paths.
-
.root_path ⇒ String
Get the path.
-
.show_run_process ⇒ Boolean
Check if show run process.
-
.single_quote ⇒ Boolean
Use single quote or double quote.
-
.skip_paths ⇒ Array<String>
Get a list of skip paths.
- .tab_width ⇒ Object
Class Attribute Details
.number_of_workers ⇒ Integer
Number of workers
47 48 49 |
# File 'lib/synvert/core/configuration.rb', line 47 def number_of_workers @number_of_workers || 1 end |
.only_paths ⇒ Array<String>
Get a list of only paths.
33 34 35 |
# File 'lib/synvert/core/configuration.rb', line 33 def only_paths @only_paths || [] end |
.root_path ⇒ String
Get the path.
19 20 21 |
# File 'lib/synvert/core/configuration.rb', line 19 def root_path @root_path || '.' end |
.show_run_process ⇒ Boolean
Check if show run process.
40 41 42 |
# File 'lib/synvert/core/configuration.rb', line 40 def show_run_process @show_run_process || false end |
.single_quote ⇒ Boolean
Use single quote or double quote.
54 55 56 |
# File 'lib/synvert/core/configuration.rb', line 54 def single_quote @single_quote.nil? ? true : @single_quote end |
.skip_paths ⇒ Array<String>
Get a list of skip paths.
26 27 28 |
# File 'lib/synvert/core/configuration.rb', line 26 def skip_paths @skip_paths || [] end |
.tab_width ⇒ Object
58 59 60 |
# File 'lib/synvert/core/configuration.rb', line 58 def tab_width @tab_width || 2 end |