From 6e56d645f0e176f7186027d0e0964ca62f4d4b6f Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 4 Dec 2011 03:05:03 +0000 Subject: * lib/delegate.rb (Delegator#methods): Kernel#methods receives zero or one argument. [ruby-core:37118] [Bug #4882] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/delegate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/delegate.rb b/lib/delegate.rb index 2086a721f9..863c63ff58 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -92,8 +92,8 @@ class Delegator < BasicObject # Returns the methods available to this delegate object as the union # of this object's and \_\_getobj\_\_ methods. # - def methods - __getobj__.methods | super + def methods(all=true) + __getobj__.methods(all) | super end # -- cgit v1.2.3