We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write a method to return the methods available to a class or object.
my @methods = $class->mc->methods; my @methods = $obj->mo->methods;
By default it returns all the methods available to the object, including inherited ones. Flags include:
UNIVERSAL whether to include methods inherited from UNIVERSAL default false inherited whether to included inherited methods default true
This is implemented by walking linear_isa and looking in the symbol table of each for typeglobs which contain CODE.
linear_isa
Side technologies will probably include:
getting the symbol table for a class asking if a typeglob contains a reference of type X
The text was updated successfully, but these errors were encountered:
Created a branch, mo_methods, for this. It contains a proof of concept Mif, Jacinta and I knocked out at Melbourne Perl Mongers. https://github.com/schwern/perl5i/commits/mo_methods
Sorry, something went wrong.
Done. I went with with_UNIVERSAL and just_mine as the options.
with_UNIVERSAL
just_mine
First cut, worked out at the pub.
f4c70a4
Re evalEmpire#170
Document methods and add options
8a85dbd
No branches or pull requests
Write a method to return the methods available to a class or object.
By default it returns all the methods available to the object, including inherited ones. Flags include:
This is implemented by walking
linear_isa
and looking in the symbol table of each for typeglobs which contain CODE.Side technologies will probably include:
The text was updated successfully, but these errors were encountered: