1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Document the way BufferedLogger defines its methods.

This commit is contained in:
Hongli Lai (Phusion) 2009-05-24 12:03:21 +02:00
parent 7324e46a3f
commit 358ed90fe5

View file

@ -68,6 +68,10 @@ module ActiveSupport
message message
end end
# Dynamically add methods such as:
# def info
# def warn
# def debug
for severity in Severity.constants for severity in Severity.constants
class_eval <<-EOT, __FILE__, __LINE__ + 1 class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{severity.downcase}(message = nil, progname = nil, &block) # def debug(message = nil, progname = nil, &block) def #{severity.downcase}(message = nil, progname = nil, &block) # def debug(message = nil, progname = nil, &block)