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



94
95
96
97
98
99
# File 'lib/test_prof.rb', line 94

def initialize
  @output = $stdout
  @color = true
  @output_dir = "tmp/test_prof"
  @timestamps = false
end

Instance Attribute Details

#colorObject

IO to write output messages.



89
90
91
# File 'lib/test_prof.rb', line 89

def color
  @color
end

#outputObject

IO to write output messages.



89
90
91
# File 'lib/test_prof.rb', line 89

def output
  @output
end

#output_dirObject

IO to write output messages.



89
90
91
# File 'lib/test_prof.rb', line 89

def output_dir
  @output_dir
end

#timestampsObject

IO to write output messages.



89
90
91
# File 'lib/test_prof.rb', line 89

def timestamps
  @timestamps
end

Instance Method Details

#color?Boolean



101
102
103
# File 'lib/test_prof.rb', line 101

def color?
  color == true
end

#timestamps?Boolean



105
106
107
# File 'lib/test_prof.rb', line 105

def timestamps?
  timestamps == true
end