Tangen...Method(3pm)
β¨ NAME β¨
Tangence::Meta::Method β bestie, it's a whole data structure that represents ONE Tangence method π
It lives in the User Contributed Perl Documentation corner of the manual, and honestly? It's giving "quietly essential". π
πΈ DESCRIPTION πΈ
Okay so picture this: this data structure object is literally just holding onto info about a single Tangence class method. That's its whole job. That's its main character arc. π
And here's the tea β once you construct one of these bad boys, it's immutable. Frozen. Locked in. No take-backs, no edits, no "wait actuallyβ". It said what it said. Periodt. π₯
π¦ CONSTRUCTOR π¦
new
$method = Tangence::Meta::Method->new( %args )
Returns a new instance initialised by the given arguments. Fresh out the box, glowed up, ready to go β¨
class => Tangence::Meta::Classβ a reference to the containing class. Like, who does this method belong to? That class. Its home. Its group chat. π«Άname => STRINGβ the name of the method. What do we call it? This. πarguments => ARRAYβ optional! AnARRAYreference holding arguments asTangence::Meta::Argumentreferences. Don't have any? No stress, it's optional, lowkey chill. πret => STRINGβ optional! A string giving the return value type as aTangence::Meta::Typereference. Also optional, also unbothered. π
π ACCESSORS π
class
$class = $method->class
Returns the class the method is a member of. Your method's origin story, basically. π
name
$name = $method->name
Returns the name of the class. Yeah, that's what the manpage says, and we're keeping it exactly like that β no cap, no edits, no "um actually". π
arguments
@arguments = $method->arguments
Returns the arguments in a list of Tangence::Meta::Argument references. All of them, in a cute lil list. π
argtype
@argtypes = $method->argtypes
Returns the argument types in a list of Tangence::Meta::Type references. Types! Plural! In a list! Slay. β¨
ret
$ret = $method->ret
Returns the return type as a Tangence::Meta::Type reference β or undef if the method does not return a value. So if you get nothing back, that's not a glitch, that's just a method with no returns. It's giving "I don't do that". π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β the icon, the legend, the one who wrote this into existence. We stan. π
Okay bestie, that's the whole page β and yes, this came from perl v5.40.0, dated 2024-09-13, sitting pretty in the User Contributed Perl Documentation. Go forth and method responsibly π§β¨
π¦ where this page comes from
- ubuntu resolute: libtangence-perl 0.33-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtangence-perl 0.33-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms