Audio:...::Item(3pm)
β¨ Audio::MPD::Common::Item β the generic collection item glow-up β¨
okay bestie, listen up π this is a page from the User Contributed Perl Documentation, and honestly? it's giving virtual class realness. Let's get into it π«Ά
πΈ NAME πΈ
Audio::MPD::Common::Item β a generic collection item. yes that's the whole name, no cap π
π VERSION π
version 2.003 β iconic, we love a version number β¨
π SYNOPSIS π
my $item = Audio::MPD::Common::Item->new( %params );
that's it. that's the whole vibe check π
π¦ DESCRIPTION π¦
So Audio::MPD::Common::Item is a virtual class β meaning it's the main character but it doesn't do the thing itself, it's the blueprint, the moment, the energy π. It represents a generic item of mpd's collection, and that item can be one of three things:
- a song π΅
- a directory π
- or a playlist π
Depending on the params you hand to new, it will create and return you an Audio::MPD::Common::Item::Song, an Audio::MPD::Common::Item::Directory, or an Audio::MPD::Common::Playlist object. literally it just picks for you, so generous π
And rn, the discrimination β the way it decides which one you get β is done on the existence of the file key of %params. that's the whole test. iykyk π₯
π METHODS π
π my $item = Audio::MPD::Common::Item->new( %params );
Create and return either an Audio::MPD::Common::Item::Song, an Audio::MPD::Common::Item::Directory, or an Audio::MPD::Common::Playlist object β and which one you get depends on the existence of a key: file, directory, or playlist (respectively) πβ¨
slay. periodt.
π AUTHOR π
Jerome Quelin β the mastermind, the moment, the author fr fr π«Ά
π₯ COPYRIGHT AND LICENSE π₯
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go off, but read the terms bestie π
lowkey a lil warning-flavored note: this is a virtual class, so don't be out here thinking you're getting an Audio::MPD::Common::Item back every time β you're getting one of its cute subclasses based on those keys. that's not me being shady, that's literally the docs π
perl v5.40.1 π¦ 2025-04-11 β and that's the whole page bestie, generated fresh, no cap, love u, bye πβ¨π
π¦ where this page comes from
- debian trixie: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libaudio-mpd-common-perl 2.003-4 Β· 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