Skip to content

Commit cbe2e65

Browse files
committed
MOP: mention that .^methods actually returns a list of method objects
1 parent 861e01f commit cbe2e65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/objects.pod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ L<Cool>, L<Any> or L<Mu>; to really get all methods, use the C<:all> adverb.
499499
say A.^methods(); # x
500500
say A.^methods(:all); # x infinite defined ...
501501
502+
The returned list actually returns objects of type L<Method>, which you can
503+
use to introspect their signatures, and even to call them.
504+
502505
=head3 mro
503506
504507
Returns the list of the class itself and its superclasses in method resolution

0 commit comments

Comments
 (0)