Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
t
 
 
 
 
 
 
 
 

README.md

NAME

method-menu -- pseudo-pragma to add "m" method everywhere (a more verbose "^methods")

SYNOPSIS

perl6 -Mmethod-menu
> my @monsters = <godzilla minotaur tingler javascript>;
> @monsters.m

   ACCEPTS                   List                     
   ASSIGN-POS                List                     
   BIND-POS                  Array                    
   BUILDALL                  Array                    
   BUILD_LEAST_DERIVED       Mu                       
   Bool                      List                     
   CALL-ME                   List                     
   CREATE                    Mu                       
   Capture                   List                     
   Complex                   Cool                     
   DUMP                      Mu                       
    ...
   unival                    Cool                     
   univals                   Cool                     
   unpolar                   Cool                     
   unshift                   List                     
   wordcase                  Cool                     
   words                     Cool

DESCRIPTION

This is essentially a third-party pragma, using the (possibly evil) magic of the "augment" feature: this means it should be used only with extreme caution. It's primary intended use is learning and/or debugging sessions using the repl.

With this pseudo-pragma, every object or class should have an "m" method, which is an even shorter alias for the "menu" method defined by Object::Examine. It gives you a list of all available methods, much like the built-in "^methods" method but in a format that's hopefully more readable and informative, albiet much more verbose.

About

A pseudo-pragma adds the "m" method everywhere to list all available methods

Resources

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%
You can’t perform that action at this time.