Class: TestProf::RSpecDissect::Configuration
- Inherits:
-
Object
- Object
- TestProf::RSpecDissect::Configuration
- Defined in:
- lib/test_prof/rspec_dissect.rb
Overview
RSpecDisect configuration
Instance Attribute Summary collapse
-
#top_count ⇒ Object
Returns the value of attribute top_count.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #stamp? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
38 39 40 41 42 43 |
# File 'lib/test_prof/rspec_dissect.rb', line 38 def initialize @top_count = (ENV['RD_PROF_TOP'] || 5).to_i @stamp = ENV['RD_PROF_STAMP'] RSpecStamp.config. = @stamp if stamp? end |
Instance Attribute Details
#top_count ⇒ Object
Returns the value of attribute top_count.
36 37 38 |
# File 'lib/test_prof/rspec_dissect.rb', line 36 def top_count @top_count end |
Instance Method Details
#stamp? ⇒ Boolean
45 46 47 |
# File 'lib/test_prof/rspec_dissect.rb', line 45 def stamp? !@stamp.nil? end |