Is part of this patch missing? I can't find the context for this patch, for example, I can't find "will return Matrix" or "will retrun Matrix" in svn trunk.
This issue was solved with changeset r31881.
Anil, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
lib/mathn.rb: Improve documentation and attach it to Numeric.
Modified from patch by Anil V. [Ruby 1.9 - Bug #4762]
Since there were other commits to mathn.rb before I received your patch I applied a modified version.
I added a note to prime.rb mentioning that it is Enumerable. Since Prime already has good documentation I don't think there's a good place to add the rest of your examples.
For Matrix and Vector they don't have much toplevel documentation, so I think that would be a good next place for you to submit a patch.