aboutsummaryrefslogtreecommitdiffstats
path: root/lib/delegate.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-04 03:05:03 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-04 03:05:03 +0000
commit6e56d645f0e176f7186027d0e0964ca62f4d4b6f (patch)
treef906120d9d3078969ae4263cc0a2542030c70054 /lib/delegate.rb
parente21f885bb024a622b7b95c3f13f2bda582dfbf0b (diff)
downloadruby-6e56d645f0e176f7186027d0e0964ca62f4d4b6f.tar.gz
* 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
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r--lib/delegate.rb4
1 files changed, 2 insertions, 2 deletions
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
#