Class: SimpleCov::SingleFile::Config

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

Constant Summary collapse

COLOR_RED =
"\e[31m%<message>s\e[0m"
COLOR_GREEN =
"\e[32m%<message>s\e[0m"
COLOR_ORANGE =
"\e[33m%<message>s\e[0m"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
# File 'lib/simplecov/single_file/config.rb', line 18

def initialize
  @output_colorized = true
  @output_red_color = COLOR_RED
  @output_green_color = COLOR_GREEN
  @output_orange_color = COLOR_ORANGE
end

Instance Attribute Details

#output_colorizedObject

Returns the value of attribute output_colorized.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_colorized
  @output_colorized
end

#output_green_colorObject

Returns the value of attribute output_green_color.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_green_color
  @output_green_color
end

#output_green_thresholdObject

Returns the value of attribute output_green_threshold.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_green_threshold
  @output_green_threshold
end

#output_orange_colorObject

Returns the value of attribute output_orange_color.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_orange_color
  @output_orange_color
end

#output_orange_thresholdObject

Returns the value of attribute output_orange_threshold.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_orange_threshold
  @output_orange_threshold
end

#output_red_colorObject

Returns the value of attribute output_red_color.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_red_color
  @output_red_color
end

#output_styleObject

Returns the value of attribute output_style.



10
11
12
# File 'lib/simplecov/single_file/config.rb', line 10

def output_style
  @output_style
end