aboutsummaryrefslogtreecommitdiffstats
path: root/lib/forwardable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/forwardable.rb')
-rw-r--r--lib/forwardable.rb7
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)