Class: Synvert::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/synvert/core/configuration.rb

Overview

Synvert global configuration.

Class Attribute Summary collapse

Class Attribute Details

.number_of_workersInteger

Number of workers

Returns:

  • (Integer)

    default is 1



47
48
49
# File 'lib/synvert/core/configuration.rb', line 47

def number_of_workers
  @number_of_workers || 1
end

.only_pathsArray<String>

Get a list of only paths.

Returns:

  • (Array<String>)

    default is [].



33
34
35
# File 'lib/synvert/core/configuration.rb', line 33

def only_paths
  @only_paths || []
end

.root_pathString

Get the path.

Returns:

  • (String)

    default is '.'



19
20
21
# File 'lib/synvert/core/configuration.rb', line 19

def root_path
  @root_path || '.'
end

.show_run_processBoolean

Check if show run process.

Returns:

  • (Boolean)

    default is false



40
41
42
# File 'lib/synvert/core/configuration.rb', line 40

def show_run_process
  @show_run_process || false
end

.single_quoteBoolean

Use single quote or double quote.

Returns:

  • (Boolean)

    true if use single quote, default is true



54
55
56
# File 'lib/synvert/core/configuration.rb', line 54

def single_quote
  @single_quote.nil? ? true : @single_quote
end

.skip_pathsArray<String>

Get a list of skip paths.

Returns:

  • (Array<String>)

    default is [].



26
27
28
# File 'lib/synvert/core/configuration.rb', line 26

def skip_paths
  @skip_paths || []
end

.tab_widthObject



58
59
60
# File 'lib/synvert/core/configuration.rb', line 58

def tab_width
  @tab_width || 2
end