Tangen...operty(3pm)

πŸ“¦
version 0.33 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ Tangence::Meta::Property ✨

okay bestie so this is Tangence::Meta::Property πŸ’… it lives in the User Contributed Perl Documentation, and it's literally just a little data-structure object that holds all the deets about one Tangence class property πŸŽ€ and the way that once you've constructed it, it's immutable β€” like, it's done, it's frozen, no takebacks, periodt πŸ”₯


πŸ’– DESCRIPTION πŸ’–

This data structure object stores information about one Tangence class property. Once constructed, such objects are immutable.

so yeah β€” one property, one object, all the info, and after that? she's locked in πŸ”’ no editing, no glow-up, she is what she is πŸ‘‘


πŸ› οΈ CONSTRUCTOR πŸ› οΈ

new

$property = Tangence::Meta::Property->new( %args )

Returns a new instance initialised by the given arguments.

here's the tea on the args, you're gonna pass them as a hash %args and every single one of them matters πŸ“

  • class => Tangence::Meta::Class β€” reference to the containing class, i.e. who's her parent, her home base 🏠
  • name => STRING β€” the name of the property. yes she has a name, use it πŸ’…
  • dimension => INT β€” dimension of the property, as one of the DIM_* constants from Tangence::Constants πŸ“
  • type => STRING β€” the element type as a Tangence::Meta::Type reference πŸ”₯ (yes, it says STRING, that's what the page says, and we do not rewrite the facts in this house)
  • smashed => BOOL β€” optional bestie! if true, it marks that the property is smashed πŸ’₯

πŸ‘‘ ACCESSORS πŸ‘‘

class

$class = $property->class

Returns the class the property is a member of 🫢

name

$name = $property->name

Returns the name of the class ✨

yes i know it says "name of the class" and you're like wait isn't this the property's name β€” that's literally what the original says so i'm keeping it fr fr, no notes πŸ’€

dimension

$dimension = $property->dimension

Returns the dimension as one of the DIM_* constants πŸ“

type

$type = $property->type

Returns the element type as a Tangence::Meta::Type reference πŸ¦‹

overall_type

$type = $property->overall_type

Returns the type of the entire collection as a Tangence::Meta::Type reference 🌈 and here's the breakdown because it's lowkey the most interesting one:

  • For scalar types this will be the element type.
  • For dict types this will be a hash of the array type.
  • For array, queue and objset types this will a list of the element type.

(that last sentence is verbatim, "this will a list", we do not fix the typo, we respect the ancestors πŸ™ˆ)

smashed

$smashed = $property->smashed

Returns true if the property is smashed πŸ’₯


🌸 AUTHOR 🌸

Paul Evans <leonerd@leonerd.org.uk> β€” king behaviour honestly πŸ‘‘


and that's the whole page bestie, no cap πŸ’œ

so this was Tangence::Meta::Property, page Tangen...operty(3pm) (yes the title got cut off like that, that's just how the man page header do πŸ™ˆ), rendered from perl v5.40.0 dated 2024-09-13 β€” perl version five point four oh point oh, September thirteenth, twenty twenty-four πŸŽ€ go forth and inspect your properties, they're immutable and they're iconic, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from