Markde...::Event(3pm)

πŸ“¦
version 0.40 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

okay so bestie, this is the Markde...::Event(3pm) page β€” say hi to Markdent::Role::Event, the role that implements behavior shared by all the events. yes, all of them. every single one. slay. πŸ‘‘


✨ VERSION ✨

version 0.40 β€” it's giving classic, it's giving stable πŸŽ€


🌸 DESCRIPTION 🌸

so this role hands out shared behavior to every event class in the whole Markdent universe. one role, everybody eats. πŸ“

but ngl, it's a lil bit of a hack β€” actually somewhat of a hack, fr fr. it's a parameterized role that generates methods for each class that consumes it. like, it doesn't just hand you the same methods, it literally spins up new ones per consumer. main character behavior, honestly. πŸ’…


πŸ¦‹ METHODS πŸ¦‹

here's everything this role gives you. buckle up.

$event->is_start

$event->is_end

$event->is_inline

these three all return booleans that tell you whether the event is of the specified type. three lil vibe checks, one per flavor. 🫢

$event->event_name

this one returns a name, like "start_blockquote", "end_strong", or "text". so if you ever needed your event to introduce itself at a party, this is how. iconic. ✨

$event->kv_pairs_for_attributes

this returns a hash representing the data stored in the object's attributes. important detail bestie: if an attribute is not required and has not been set, it will not be present in the hash. no ghost keys, no empty seats at the table. πŸ™ˆ

$event->debug_dump

returns a string representation of the event, suitable for debugging output. it's basically the event's little diary entry for when things go sideways. πŸ’€


πŸ› BUGS πŸ›

see Markdent for bug reporting details.

bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.

also, they're usually active on IRC as 'autarch' on irc://irc.perl.org. so if you wanna slide into the IRC, that's the move. πŸ‘‘


πŸ”₯ SOURCE πŸ”₯

the source code repository for Markdent lives at <https://github.com/houseabsolute/Markdent>. go look, it's right there. πŸ’œ


🌈 AUTHOR 🌈

Dave Rolsky <autarch@urth.org> β€” king behavior, we love to see it. πŸ‘‘


this software is copyright (c) 2021 by Dave Rolsky.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

the full text of the license can be found in the LICENSE file included with this distribution. read it, bestie, it's short and it's important. 🫢


k that's the whole page, no notes, ate and left no crumbs πŸ’…

mwah πŸ’‹ β€” this was Markde...::Event(3pm) on perl v5.32.1, dated 2021-08-31. that's a wrap, periodt.

πŸ“¦ where this page comes from