Re: Class:Hash
Slevin McGuigan <[email protected]> Fri, 31 Dec 2010 13:46:14 +0100
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
>> Although chances are low that #key is used often, Class hash does offer this >> method. Hence I guess it should be working correctly (which it does imho) >> and it should be documented correctly. This is what I wanted to >> discuss/clarify in this thread. >> >> Any more opinions on the documentation of #key? Shouldn't there be something >> in the documentation of hash#key like "... If there is more then one >> occurance of the value the first key is returned" (addendum: in my first >> eMail I mixed value and key. I just corrected this here) > > That sounds like a reasonable addition. > The only "blessed" documenation source is the ruby core source code > itself. I'd write up a patch and submit it. > > http://www.ruby-lang.org/en/community/ruby-core/ > Just to make sure we have the same understanding (would be pretty goofy if my first patch to be submitted would be identical to the one you submitted just a couple of days ago... :o ) By saying "I'd write a patch" you mean "if I were you I would write a patch. I don't plan to write one". Thanks to all. I will write a patch. (this will take a while, I first need to get into the rules & tools etc. ...) Best Regards and a happy new year! SMG