From 358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Sun, 24 May 2009 12:03:21 +0200 Subject: Document the way BufferedLogger defines its methods. --- activesupport/lib/active_support/buffered_logger.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib') 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) -- cgit v1.2.3