Class: CodeKeeper::Config
- Inherits:
-
Object
- Object
- CodeKeeper::Config
- Defined in:
- lib/code_keeper/config.rb
Overview
Provide configuration
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#metrics ⇒ Object
Returns the value of attribute metrics.
-
#number_of_threads ⇒ Object
Returns the value of attribute number_of_threads.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#format ⇒ Object
Returns the value of attribute format.
6 7 8 |
# File 'lib/code_keeper/config.rb', line 6 def format @format end |
#metrics ⇒ Object
Returns the value of attribute metrics.
6 7 8 |
# File 'lib/code_keeper/config.rb', line 6 def metrics @metrics end |
#number_of_threads ⇒ Object
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 |