EBook::...ta::Item(3)

πŸ“¦
version 0.6 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

EBook::EPUB::Metadata::Item β€” bestie, it's literally just a name/value pair. That's it. That's the whole vibe. ✨

It's the item that lives inside the <metadata> element of an OPF file, and it's giving "small but essential." πŸŽ€


🌸 SYNOPSIS 🌸

Item for <metdata> element of OPF file. Just name/value pair.

ok so real talk, that typo up there β€” <metdata> β€” is exactly how the original spells it, so I'm keeping it, no cap. πŸ’…

✨ SUBROUTINES/METHODS ✨

  • new(%opts) β€” makes you a brand new item, slay. πŸ¦‹

%opts is an anonymous hash that might contain the following keys:

  • name
  • value

So like, you hand it a hash of options and it does the thing. Lowkey the simplest constructor ever. 🌈

  • encode($xmlwriter) β€” Encode object to XML form using an XML::Writer instance. You pass it your writer and it writes itself out. Main character behavior fr fr. πŸ”₯
  • name([$name]) β€” Get/set the name of the metadata item. Call it with nothing and it just tells you the name; call it with a $name and it sets it. Obsessed with a dual-purpose method. πŸ‘‘
  • value([$value]) β€” Get/set the value of the metadata item. Same deal: no argument = get, argument = set. Periodt. πŸ’œ

🫢 AUTHOR 🫢

Oleksandr Tymoshenko, <gonzo@bluezbox.com>


πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to <gonzo@bluezbox.com>

not me telling you to email your problems directly to the author, but yeah, that's literally the instruction πŸ™ˆ

Copyright 2009, 2010 Oleksandr Tymoshenko.

<http://bluezbox.com>

This module is free software; you can redistribute it and/or modify it under the terms of the BSD license. See the LICENSE file included with this distribution.


and that's the whole page bestie πŸ’– this one shipped as part of perl v5.42.0, dated 2025-07-25, and you'll find it filed under EBook::...ta::Item(3) β€” go forth and encode your little name/value pairs, you absolute icon ⭐🌸

πŸ“¦ where this page comes from