From 8aa63a78b8ac238dd379108a5cb2cc5cc5418a40 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 11 Sep 2005 05:01:01 +0000 Subject: Added test to ensure that silence_warnings also returned its value git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/kernel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/kernel.rb') diff --git a/activesupport/lib/active_support/core_ext/kernel.rb b/activesupport/lib/active_support/core_ext/kernel.rb index d4c3114488..54979c1a1a 100644 --- a/activesupport/lib/active_support/core_ext/kernel.rb +++ b/activesupport/lib/active_support/core_ext/kernel.rb @@ -18,7 +18,7 @@ module Kernel # Sets $VERBOSE to nil for the duration of the block and back to its original value afterwards. # # silence_warnings do - # noisy_call # no warning voiced + # value = noisy_call # no warning voiced # end # # noisy_call # warning voiced -- cgit v1.2.3