PPIx::...utline(3pm)

πŸ“¦
version 0.21 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

πŸ¦‹ PPIx::EditorTools::Outline πŸ¦‹

okay bestie, so this page is literally PPIx::...utline(3pm) β€” it lives in the User Contributed Perl Documentation section and it's giving "let me peek inside your Perl code and tell you what's in there" energy. ✨


🌸 NAME 🌸

PPIx::EditorTools::Outline β€” Collect use pragmata, modules, subroutiones, methods, attributes πŸ‘‘

(and yes, subroutiones is spelled exactly like that in here, we don't touch it, it's iconic πŸ’…)


πŸŽ€ VERSION πŸŽ€

version 0.21 πŸ’–


✨ SYNOPSIS ✨

no cap, here's the whole vibe:

my $outline = PPIx::EditorTools::Outline->new->find(
      code => "package TestPackage;\nsub x { 1;\n"
    );
print Dumper $outline;

like… it just hands you the tea πŸ“


πŸ’œ DESCRIPTION πŸ’œ

Return a list of pragmatas, modules, methods, attributes of a PPI::Document.

that's the whole thing. it takes a PPI::Document and spills all the structural gossip inside it. πŸ«–βœ¨


πŸ’… METHODS πŸ’…

  • new() β€” the Constructor, bestie. Generally shouldn't be called with any arguments. so like… don't. πŸ™ˆ
  • find() β€” the main character fr fr. here's how you call it:
find( ppi => PPI::Document $ppi )

or

find( code => Str $code )

Accepts either a PPI::Document to process or a string containing the code (which will be converted into a PPI::Document) to process. Return a reference to a hash. that's it, that's the whole flex. πŸ’–

🌈 Internal Methods 🌈

these are the behind-the-scenes girlies, not for you, iykyk:

  • _Moo_Attributes
  • _Moo_PkgName

πŸ”₯ SEE ALSO πŸ”₯

This class inherits from PPIx::EditorTools. Also see App::EditorTools, Padre, and PPI. go read those too, they're part of the friend group 🫢


πŸ‘‘ AUTHORS πŸ‘‘

shoutout to the legends who built this, periodt:

  • Steffen Mueller smueller@cpan.org
  • Mark Grimes mgrimes@cpan.org
  • Ahmad M. Zawawi <ahmad.zawawi@gmail.com>
  • Gabor Szabo <gabor@szabgab.com>
  • Yanick Champoux <yanick@cpan.org>

This software is copyright (c) 2017, 2014, 2012 by The Padre development team as listed in Padre.pm..

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ•ŠοΈ

real talk: that's the standard Perl license deal β€” free to use, free to remix, same terms as Perl 5 itself. no drama. πŸ’œ

and that's the whole page, bestie! πŸ’– this cutie is documented as part of perl v5.34.0, dated 2022-06-17 β€” tysm for reading, mwah! πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from