Class: CodeKeeper::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/code_keeper/config.rb

Overview

Provide configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
12
# File 'lib/code_keeper/config.rb', line 8

def initialize
  @metrics = %i[cyclomatic_complexity class_length abc_metric]
  @number_of_threads = 2
  @format = :json # json and csv are supported.
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



6
7
8
# File 'lib/code_keeper/config.rb', line 6

def format
  @format
end

#metricsObject

Returns the value of attribute metrics.



6
7
8
# File 'lib/code_keeper/config.rb', line 6

def metrics
  @metrics
end

#number_of_threadsObject

Returns the value of attribute number_of_threads.



6
7
8
# File 'lib/code_keeper/config.rb', line 6

def number_of_threads
  @number_of_threads
end