diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2009-05-24 12:03:21 +0200 |
---|---|---|
committer | Hongli Lai (Phusion) <hongli@phusion.nl> | 2009-05-24 12:03:21 +0200 |
commit | 358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a (patch) | |
tree | 7212c26690afca2ba27c4083f1073af5b85bc6a0 /activesupport | |
parent | 7324e46a3fe7be282deeda14783f4170ccf03a3c (diff) | |
download | rails-358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a.tar.gz rails-358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a.tar.bz2 rails-358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a.zip |
Document the way BufferedLogger defines its methods.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index ee66479dde..dfce507b33 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -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) |