Class: TestProf::Configuration

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

Overview

TestProf configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



145
146
147
148
149
150
151
# File 'lib/test_prof.rb', line 145

def initialize
  @output = $stdout
  @color = true
  @output_dir = "tmp/test_prof"
  @timestamps = false
  @report_suffix = ENV["TEST_PROF_REPORT"]
end

Instance Attribute Details

#colorObject

IO to write output messages.



139
140
141
# File 'lib/test_prof.rb', line 139

def color
  @color
end

#outputObject

IO to write output messages.



139
140
141
# File 'lib/test_prof.rb', line 139

def output
  @output
end

#output_dirObject

IO to write output messages.



139
140
141
# File 'lib/test_prof.rb', line 139

def output_dir
  @output_dir
end

#report_suffixObject

IO to write output messages.



139
140
141
# File 'lib/test_prof.rb', line 139

def report_suffix
  @report_suffix
end

#timestampsObject

IO to write output messages.



139
140
141
# File 'lib/test_prof.rb', line 139

def timestamps
  @timestamps
end

Instance Method Details

#color?Boolean

Returns:

  • (Boolean)


153
154
155
# File 'lib/test_prof.rb', line 153

def color?
  color == true
end

#timestamps?Boolean

Returns:

  • (Boolean)


157
158
159
# File 'lib/test_prof.rb', line 157

def timestamps?
  timestamps == true
end