Class: TestProf::Configuration
- Inherits:
-
Object
- Object
- TestProf::Configuration
- Defined in:
- lib/test_prof.rb
Overview
TestProf configuration
Instance Attribute Summary collapse
-
#color ⇒ Object
IO to write output messages.
-
#output ⇒ Object
IO to write output messages.
-
#output_dir ⇒ Object
IO to write output messages.
-
#report_suffix ⇒ Object
IO to write output messages.
-
#timestamps ⇒ Object
IO to write output messages.
Instance Method Summary collapse
- #color? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #timestamps? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
139 140 141 142 143 144 145 |
# File 'lib/test_prof.rb', line 139 def initialize @output = $stdout @color = true @output_dir = "tmp/test_prof" @timestamps = false @report_suffix = ENV["TEST_PROF_REPORT"] end |
Instance Attribute Details
#color ⇒ Object
IO to write output messages.
133 134 135 |
# File 'lib/test_prof.rb', line 133 def color @color end |
#output ⇒ Object
IO to write output messages.
133 134 135 |
# File 'lib/test_prof.rb', line 133 def output @output end |
#output_dir ⇒ Object
IO to write output messages.
133 134 135 |
# File 'lib/test_prof.rb', line 133 def output_dir @output_dir end |
#report_suffix ⇒ Object
IO to write output messages.
133 134 135 |
# File 'lib/test_prof.rb', line 133 def report_suffix @report_suffix end |
#timestamps ⇒ Object
IO to write output messages.
133 134 135 |
# File 'lib/test_prof.rb', line 133 def @timestamps end |
Instance Method Details
#color? ⇒ Boolean
147 148 149 |
# File 'lib/test_prof.rb', line 147 def color? color == true end |
#timestamps? ⇒ Boolean
151 152 153 |
# File 'lib/test_prof.rb', line 151 def == true end |