Class: TestProf::MemoryProf::Configuration
- Inherits:
-
Object
- Object
- TestProf::MemoryProf::Configuration
- Defined in:
- lib/test_prof/memory_prof.rb
Overview
MemoryProf configuration
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#top_count ⇒ Object
Returns the value of attribute top_count.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 |
# File 'lib/test_prof/memory_prof.rb', line 30 def initialize self.mode = ENV["TEST_MEM_PROF"] self.top_count = ENV["TEST_MEM_PROF_COUNT"] end |
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
28 29 30 |
# File 'lib/test_prof/memory_prof.rb', line 28 def mode @mode end |
#top_count ⇒ Object
Returns the value of attribute top_count.
28 29 30 |
# File 'lib/test_prof/memory_prof.rb', line 28 def top_count @top_count end |