Bio::D...r::Tag(3pm)

πŸ“¦
version 2.56 Β· 5 versions
, in ubuntu questing

πŸ’– NAME πŸ’–

Bio::DB::Tagger::Tag β€” Authored tags ✨

Ok bestie, quick vibe check: this page is the manual for Bio::DB::Tagger::Tag, part of the Perl docs (that's the 3pm energy right there). Let's get into it 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

use Bio::DB::Tagger::Tag;

my $tag = Bio::DB::Tagger::Tag->new(-name   => 'venue',
                                    -value  => 'mermaid parade',
                                    -author => 'lincoln.stein@gmail.com');
print $tag,"\n";          # use like a string
print $tag->name,"\n";    # object interface
print $tag->value,"\n";   # object interface
print $tag->author,"\n";

Like. Look at her. She's a whole object AND she stringifies. Main character energy fr fr πŸ’…


🌸 DESCRIPTION 🌸

So basically this is a simple object tag interface that hands you string-like objects that have authors assigned to them πŸŽ€ The whole point is so you can attribute tags to authors inside the Bio::DB::Tagger module. That's it, that's the gig. No cap.


πŸŽ€ METHODS πŸŽ€

  • $tag = Bio::DB::Tagger::Tag->new(-name=>$tag, -author=>$author [,-value=> $value, ,-modified=>$timestamp]); β€” Make a brand new tag with the value and author you indicated πŸ’– (name and author are the must-haves, value and modified are the optional little extras).
  • $name = $tag->name β€” Hands you back the tag's name πŸ‘‘
  • $value = $tag->value; β€” Hands you back the tag's value πŸ“
  • $timestamp = $tag->modified β€” Hands you back the tag's modification timestamp ⏰
  • $author = $tag->author; β€” Hands you back the tag's author ✨
  • $int = $tag->cmp($tag,$reversed) β€” Does a string cmp() operation on another tag or a plain string 🧚 Here's the tea: if you pass in a string, the operation is on the tag name only. If you pass in a tag, the operation is on both tag and value. Iykyk.
  • $string = $tag->asString β€” Converts it into a name:value string 🌈

πŸ’œ SEE ALSO πŸ’œ

Bio::DB::Tagger


πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lincoln.stein@gmail.com>.

Copyright (c) 2009 Ontario Institute for Cancer Research

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

Bestie, that license bit is real talk β€” if you're gonna redistribute or modify this, you gotta play by the GPL (version 1, or later if you want) or the Artistic License 2.0 rules. Full text lives in LICENSE, and the warranty disclaimers live in DISCLAIMER.txt. Read them, don't skip them πŸ™ˆ

And that's the whole page, bestie πŸ’– This one came from the perl v5.40.0 docs, dated 2024-10-20. Slay, go tag something βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from