Project

General

Profile

Actions

Bug #4709

closed

Revise documentation for Singleton

Added by phiggins (Pete Higgins) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-05-16 trunk 31588) [x86_64-linux]
Backport:
[ruby-core:36223]

Description

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.

Files

singleton_docs.diff (9.97 KB) singleton_docs.diff phiggins (Pete Higgins), 05/16/2011 05:10 PM
singleton_tests.diff (2.39 KB) singleton_tests.diff phiggins (Pete Higgins), 05/16/2011 05:10 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0