This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ff254
)
Mention mutator as synonym for setter
author
Dave Rolsky
<autarch@urth.org>
Wed, 14 Sep 2011 14:24:37 +0000
(09:24 -0500)
committer
Dave Rolsky
<autarch@urth.org>
Wed, 14 Sep 2011 14:24:46 +0000
(09:24 -0500)
pod/perlootut.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlootut.pod
b/pod/perlootut.pod
index
8c2cfcc
..
e25bb77
100644
(file)
--- a/
pod/perlootut.pod
+++ b/
pod/perlootut.pod
@@
-185,7
+185,7
@@
$self->path >>.
You might also see the terms B<getter> and B<setter>. These are two
types of accessors. A getter gets the attribute's value, while a setter
-sets it.
+sets it.
Another term for a setter is B<mutator>
Attributes are typically defined as read-only or read-write. Read-only
attributes can only be set when the object is first created, while