summaryrefslogtreecommitdiffstats
path: root/doc/my.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/my.n')
-rw-r--r--doc/my.n6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/my.n b/doc/my.n
index 75d7bac..fed03d6 100644
--- a/doc/my.n
+++ b/doc/my.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: my.n,v 1.1 2008/05/31 11:42:13 dkf Exp $
+'\" RCS: @(#) $Id: my.n,v 1.2 2008/10/17 10:22:25 dkf Exp $
'\"
.so man.macros
.TH my n 0.1 TclOO "TclOO Commands"
@@ -19,8 +19,8 @@ package require TclOO
\fBmy\fI methodName\fR ?\fIarg ...\fR?
.fi
.BE
-
.SH DESCRIPTION
+.PP
The \fBmy\fR command is used to allow methods of objects to invoke any method
of the object (or its class). In particular, the set of valid values for
\fImethodName\fR is the set of all methods supported by an object and its
@@ -31,8 +31,10 @@ method is invoked is always the one that is the current context of the method
.PP
Each object has its own \fBmy\fR command, contained in its unique namespace.
.SH EXAMPLES
+.PP
This example shows basic use of \fBmy\fR to use the \fBvariables\fR method of
the \fBoo::object\fR class, which is not publically visible by default:
+.PP
.CS
oo::class create c {
method count {} {