diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-04 02:52:54 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-04 02:52:54 +0000 |
commit | 5a7c4d2a78f78804a0508c56fbdf26738251bb5b (patch) | |
tree | 42eda5a4c7fa92811508c495efab6a88d4b9593e /lib/forwardable.rb | |
parent | 6856d86dc177c40a7264ae3b9c9895a312e886e7 (diff) | |
download | ruby-5a7c4d2a78f78804a0508c56fbdf26738251bb5b.tar.gz |
* lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.
Patch by Vladimir Andrijevik [Github Fixes #230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/forwardable.rb')
-rw-r--r-- | lib/forwardable.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/forwardable.rb b/lib/forwardable.rb index 73d3984f41..d7116ed1bc 100644 --- a/lib/forwardable.rb +++ b/lib/forwardable.rb @@ -250,11 +250,12 @@ module SingleForwardable end end + # :call-seq: + # def_single_delegator(accessor, method, new_name=method) # - # Defines a method _method_ which delegates to _obj_ (i.e. it calls - # the method of the same name in _obj_). If _new_name_ is + # Defines a method _method_ which delegates to _accessor_ (i.e. it calls + # the method of the same name in _accessor_). If _new_name_ is # provided, it is used as the name for the delegate method. - # def def_single_delegator(accessor, method, ali = method) str = %{ def #{ali}(*args, &block) |