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.



91
92
93
94
95
96
# File 'lib/test_prof.rb', line 91

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

Instance Attribute Details

#colorObject

IO to write output messages.



86
87
88
# File 'lib/test_prof.rb', line 86

def color
  @color
end

#outputObject

IO to write output messages.



86
87
88
# File 'lib/test_prof.rb', line 86

def output
  @output
end

#output_dirObject

IO to write output messages.



86
87
88
# File 'lib/test_prof.rb', line 86

def output_dir
  @output_dir
end

#timestampsObject

IO to write output messages.



86
87
88
# File 'lib/test_prof.rb', line 86

def timestamps
  @timestamps
end

Instance Method Details

#color?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/test_prof.rb', line 98

def color?
  color == true
end

#timestamps?Boolean

Returns:

  • (Boolean)


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

def timestamps?
  timestamps == true
end