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 58
58:         def initialize(level = DEBUG)
59:           @flush_count = 0
60:           @level = level
61:           @logged = Hash.new { |h,k| h[k] = [] }
62:         end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.