Hazins, Kalman | 12 Jul 2011 19:22
Favicon

alias - error in documentation

All, 

I believe I found an error in the documentation for a ruby keyword - alias.

The documentation, under 1.9 keywords link=> alias, states that

p.full_name = "David"   # Please use fullname=

I believe the comment is incorrect. The full_name= is still referencing the old name= definition and not
the newly defined one. 

(I have of course verified my hypothesis by actually running the code.)

Hope this is useful, 

-Kalman Hazins

Roger Pack | 13 Jul 2011 03:57
Picon

Re: alias - error in documentation

I'd recommend creating and submitting a patch with the change.
http://blog.steveklabnik.com/2011/05/10/contributing-to-ruby-s-documentation.html
Cheers!
-roger-

On Tue, Jul 12, 2011 at 11:22 AM, Hazins, Kalman
<Kalman.Hazins <at> jhuapl.edu> wrote:
> All,
>
> I believe I found an error in the documentation for a ruby keyword - alias.
>
> The documentation, under 1.9 keywords link=> alias, states that
>
> p.full_name = "David"   # Please use fullname=
>
> I believe the comment is incorrect. The full_name= is still referencing the old name= definition and not
the newly defined one.
>
> (I have of course verified my hypothesis by actually running the code.)
>
> Hope this is useful,
>
> -Kalman Hazins
>
>


Gmane