File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -755,16 +755,15 @@ package, we can get a list of type objects for the keys.
755
755
say @keys.map: *.perl;
756
756
# OUTPUT: «(E::two E::one)»
757
757
758
- = head3 Introspection
759
-
760
- = head4 Metaclass
758
+ = head3 Metaclass
761
759
762
- To test if a given type object is an enum test the meta object method C < .HOW >
763
- for L < Metamodel::EnumHOW|/type/Metamodel::EnumHOW > .
760
+ To test if a given type object is an C < enum > , test the meta object method
761
+ C < .HOW > for L < Metamodel::EnumHOW|/type/Metamodel::EnumHOW > or simply test again
762
+ the C < Enumeration > role.
764
763
765
764
enum E(<a b c>);
766
- say E.HOW ~~ Metamodel::EnumHOW;
767
- # OUTPUT: «True»
765
+ say E.HOW ~~ Metamodel::EnumHOW; # OUTPUT: «True»
766
+ say E ~~ Enumeration; # OUTPUT: «True»
768
767
769
768
= head3 Methods
770
769
You can’t perform that action at this time.
0 commit comments