File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ behaviors by performing different roles.
123
123
124
124
=head1 What is a role?
125
125
126
- Previous chapters have explained classes and grammars. A role is another type
127
- of package. Like classes and grammars , a role can contain methods (including
128
- named regexes) and attributes. However, a role cannot stand on its own; you
129
- cannot instantiate a role. To use a role, you must incorporate it into an
130
- object, class, or grammar.
126
+ A role is another type of package. Like classes, a role can contain
127
+ methods (including named regexes) and attributes. However , a role cannot
128
+ stand on its own; you cannot instantiate a role. To use a role, you must
129
+ incorporate it into an object, class, or, as we'll see in later
130
+ chapters, a grammar.
131
131
132
132
In other object systems, classes perform two tasks. They represent entities in
133
133
the system, providing models from which to create instances. They also provide
You can’t perform that action at this time.
0 commit comments