Parent

Class Index [+]

Quicksearch

ActiveSupport::LogSubscriber::TestHelper::MockLogger

Attributes

flush_count[R]
level[RW]

Public Class Methods

new(level = DEBUG) click to toggle source
    # File lib/active_support/log_subscriber/test_helper.rb, line 56
56:         def initialize(level = DEBUG)
57:           @flush_count = 0
58:           @level = level
59:           @logged = Hash.new { |h,k| h[k] = [] }
60:         end

Public Instance Methods

flush() click to toggle source
    # File lib/active_support/log_subscriber/test_helper.rb, line 70
70:         def flush
71:           @flush_count += 1
72:         end
logged(level) click to toggle source
    # File lib/active_support/log_subscriber/test_helper.rb, line 66
66:         def logged(level)
67:           @logged[level].compact.map { |l| l.to_s.strip }
68:         end
method_missing(level, message) click to toggle source
    # File lib/active_support/log_subscriber/test_helper.rb, line 62
62:         def method_missing(level, message)
63:           @logged[level] << message
64:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.