Class: ActiveSupport::LogSubscriber::TestHelper::MockLogger
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Instance Chain: 
          self,
          ActiveSupport::Logger::Severity
         | |
| Inherits: | Object | 
| Defined in: | activesupport/lib/active_support/log_subscriber/test_helper.rb | 
Class Method Summary
- .new(level = DEBUG) ⇒ MockLogger constructor
Instance Attribute Summary
- #flush_count readonly
- #level rw
Instance Method Summary
Constructor Details
    .new(level = DEBUG)  ⇒ MockLogger 
  
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(level, message = nil)
[ GitHub ]Instance Attribute Details
#flush_count (readonly)
[ GitHub ]# File 'activesupport/lib/active_support/log_subscriber/test_helper.rb', line 57
attr_reader :flush_count
#level (rw)
[ GitHub ]# File 'activesupport/lib/active_support/log_subscriber/test_helper.rb', line 58
attr_accessor :level
Instance Method Details
#flush
[ GitHub ]# File 'activesupport/lib/active_support/log_subscriber/test_helper.rb', line 78
def flush @flush_count += 1 end