Class:...String(3pm)

πŸ“¦
version 0.66 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– Class:...String(3pm) β€” the manual page, but make it cute πŸ’–

okay so bestie, welcome to Class::Meta::Types::String πŸŽ€ β€” the Perl doc you're reading is filed under the manual name Class:...String(3pm), and honestly? it's giving short-but-iconic. let's get into it πŸ’…


✨ NAME ✨

Class::Meta::Types::String β€” string data types, periodt 🧡✨


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, copy it exactly bestie:

package MyApp::Thingy;
use strict;
use Class::Meta;
use Class::Meta::Types::String;
# OR...
# use Class::Meta::Types::String 'affordance';
# OR...
# use Class::Meta::Types::String 'semi-affordance';

BEGIN {
    # Create a Class::Meta object for this class.
    my $cm = Class::Meta->new( key => 'thingy' );

    # Add a string attribute.
    $cm->add_attribute( name => 'name',
                        type => 'string' );
    $cm->build;
}

see those # OR... lines? you can load it plain, or load it with 'affordance', or with 'semi-affordance'. all three are valid, no cap 🌈


πŸ’œ DESCRIPTION πŸ’œ

This module provides a string data type for use with Class::Meta attributes. literally that's its whole job and it ate πŸ’…

So the way that you use it: simply load it, then pass "string" to the add_attribute() method of a Class::Meta object, and boom β€” you've created an attribute of the string data type. main character energy fr fr ✨

if you wanna know more about using and creating data types, go check out Class::Meta::Type. iykyk πŸ¦‹


🫢 SUPPORT 🫢

This module is stored in an open GitHub repository <http://github.com/theory/class-meta/>. feel free to fork and contribute bestie, we love a collab πŸ‘‘

Please file bug reports via GitHub Issues <http://github.com/theory/class-meta/issues/> or by sending mail to bug-Class-Meta@rt.cpan.org <mailto:bug-Class-Meta@rt.cpan.org> πŸ“¬ (not me being emotionally available for bug reports πŸ’€)


πŸ‘‘ AUTHOR πŸ‘‘

David E. Wheeler <david@justatheory.com> β€” icon behavior, we stan 🌟


🌈 SEE ALSO 🌈

Other classes of interest within the Class::Meta distribution include:

  • Class::Meta β€” This class contains most of the documentation you need to get started with Class::Meta. the starter pack, basically πŸ“š
  • Class::Meta::Type β€” This class manages the creation of data types. the type-maker 🧚
  • Class::Meta::Attribute β€” This class manages Class::Meta class attributes, all of which are based on data types. everything's downstream of types, lowkey πŸ”₯

Other data type modules:

  • Class::Meta::Types::Perl
  • Class::Meta::Types::Boolean
  • Class::Meta::Types::Numeric

the whole squad, together πŸ«‚


Copyright (c) 2002-2011, David E. Wheeler. Some Rights Reserved. (yes, "some" β€” not all, slay πŸ’…)

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸͺ

fr fr: if you're reusing this, keep that copyright and license line intact. no skipping, bestie πŸ™ˆ

okay that's the whole page!! πŸ’– this was rendered from the perl v5.34.0 release, dated 2022-06-11, and the manual title on the tin is Class:...String(3pm) β€” go forth and string-attribute responsibly, you absolute legend πŸ¦‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from