Issue #4709 has been updated by Eric Hodel.


Can you split the tests change into a separate issue?
----------------------------------------
Bug #4709: Revise documentation for Singleton
http://redmine.ruby-lang.org/issues/4709

Author: Pete Higgins
Status: Open
Priority: Normal
Assignee: Eric Hodel
Category: DOC
Target version: 
ruby -v: ruby 1.9.3dev (2011-05-16 trunk 31588) [x86_64-linux]


Singleton seemed to be light on documentation, and it included some non-working example code that seemed to function as documentation and tests. In addition, a few classes and methods in the example code were picked up by Rdoc.

The first patch:
- Removes the example code.
- Revises the documentation.

The second patch:
- Adds some basic tests for Singleton.


-- 
http://redmine.ruby-lang.org