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.
-
#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.
106 107 108 109 110 111 |
# File 'lib/test_prof.rb', line 106 def initialize @output = $stdout @color = true @output_dir = "tmp/test_prof" @timestamps = false end |
Instance Attribute Details
#color ⇒ Object
IO to write output messages.
101 102 103 |
# File 'lib/test_prof.rb', line 101 def color @color end |
#output ⇒ Object
IO to write output messages.
101 102 103 |
# File 'lib/test_prof.rb', line 101 def output @output end |
#output_dir ⇒ Object
IO to write output messages.
101 102 103 |
# File 'lib/test_prof.rb', line 101 def output_dir @output_dir end |
#timestamps ⇒ Object
IO to write output messages.
101 102 103 |
# File 'lib/test_prof.rb', line 101 def @timestamps end |
Instance Method Details
#color? ⇒ Boolean
113 114 115 |
# File 'lib/test_prof.rb', line 113 def color? color == true end |
#timestamps? ⇒ Boolean
117 118 119 |
# File 'lib/test_prof.rb', line 117 def == true end |