Graph:...::Cell(3pm)

πŸ“¦
version 0.76 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Graph::Easy::Group::Cell β€” the perl doc you didn't know you needed πŸ’–

okay so, bestie, this is Graph::Easy::Group::Cell β€” a whole Perl manual page from the User Contributed Perl Documentation collection. Yes it's giving "why am I reading this", but we're here now and we're gonna slay it. πŸŽ€


✨ NAME ✨

Graph::Easy::Group::Cell β€” literally just a cell in a group. That's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

Look at this little code moment, no cap:

        use Graph::Easy;

        my $ssl = Graph::Easy::Edge->new( );

        $ssl->set_attributes(
                label => 'encrypted connection',
                style => '-->',
                color => 'red',
        );

        $graph = Graph::Easy->new();

        $graph->add_edge('source', 'destination', $ssl);

        print $graph->as_ascii();

It's giving graph energy. Add an edge, give it a red --> style, print it as ascii. Iconic behavior honestly. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

A Graph::Easy::Group::Cell represents a cell of a group. Periodt.

Group cells can have a background and, if they are on the outside, a border. The way that outside cells get borders is lowkey the whole personality of this thing. ✨

🫢 bestie heads up: there should be no need to use this package directly. It's an internal little guy. Not the main character, just supporting cast. πŸ’€

πŸŽ€ METHODS πŸŽ€

error()

        $last_error = $group->error();

        $group->error($error);                  # set new messages
        $group->error('');                      # clear error

Returns the last error message, or '' for no error. So if you get an empty string back, that's the good ending. 🌈

as_ascii()

        my $ascii = $cell->as_ascii();

Returns the cell as a little ascii representation. Tiny. Adorable. Iconic. πŸ₯Ί

as_html()

        my $html = $cell->as_html($tag,$id);

Returns the cell as HTML code. Give it a $tag and an $id and it'll do its thing. ✨

label()

        my $label = $cell->label();

Returns the name (also known as the 'label') of the cell. Same thing, two names, it's giving nickname energy. πŸ’…

class()

        my $class = $cell->class();

Returns the classname(s) of this cell, like:

        group_cities gr gb

for a cell with a bottom (gb) and right (gr) border in the class "cities". So gr = right, gb = bottom, group_cities = the class. iykyk. πŸ‘‘


πŸ¦‹ EXPORT πŸ¦‹

None. That's it. Nothing gets exported. The audacity? Honestly refreshing. πŸ™ˆ


🌈 SEE ALSO 🌈

  • Graph::Easy

πŸ‘‘ AUTHOR πŸ‘‘

Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.

See the LICENSE file for more details. πŸ“œ


and that's the whole page, bestie β€” you ate that πŸ’…βœ¨

this masterpiece was served up by perl v5.36.0, dated 2022-11-20, and it's a Graph:...::Cell(3pm) situation 🫢 bye bb, go build a graph 🌸