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.



126
127
128
129
130
131
# File 'lib/test_prof.rb', line 126

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

Instance Attribute Details

#colorObject

IO to write output messages.



121
122
123
# File 'lib/test_prof.rb', line 121

def color
  @color
end

#outputObject

IO to write output messages.



121
122
123
# File 'lib/test_prof.rb', line 121

def output
  @output
end

#output_dirObject

IO to write output messages.



121
122
123
# File 'lib/test_prof.rb', line 121

def output_dir
  @output_dir
end

#timestampsObject

IO to write output messages.



121
122
123
# File 'lib/test_prof.rb', line 121

def timestamps
  @timestamps
end

Instance Method Details

#color?Boolean

Returns:

  • (Boolean)


133
134
135
# File 'lib/test_prof.rb', line 133

def color?
  color == true
end

#timestamps?Boolean

Returns:

  • (Boolean)


137
138
139
# File 'lib/test_prof.rb', line 137

def timestamps?
  timestamps == true
end