diff --git a/ChangeLog b/ChangeLog index 318ca3632e..82927d256c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 4 11:51:00 2013 Zachary Scott + + * lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator. + Patch by Vladimir Andrijevik [Github Fixes #230] + Fri Jan 4 00:35:11 2013 Yuki Yugui Sonoda Fix failures on btest for NativeClient. 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)