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:
parent
7324e46a3f
commit
358ed90fe5
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ module ActiveSupport
|
|||
message
|
||||
end
|
||||
|
||||
# Dynamically add methods such as:
|
||||
# def info
|
||||
# def warn
|
||||
# def debug
|
||||
for severity in Severity.constants
|
||||
class_eval <<-EOT, __FILE__, __LINE__ + 1
|
||||
def #{severity.downcase}(message = nil, progname = nil, &block) # def debug(message = nil, progname = nil, &block)
|
||||
|
|
Loading…
Reference in a new issue