HTML::...::Range(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::...::Range πŸ’–

okay bestie, so this is the manual page for HTML::...::Range(3pm) β€” part of the Perl docs, filed under User Contributed Perl Documentation. It's a lil' range constraint for widgets and it's honestly so cute and so simple. Let's get into it πŸ¦‹


✨ NAME ✨

HTML::Widget::Constraint::Range β€” Range Constraint. that's the whole name, no cap πŸ’…


✨ SYNOPSIS ✨

here's the vibe, exactly as written:

    my $c = $widget->constraint( 'Range', 'foo' );
    $c->min(23);
    $c->max(30);

so you grab a constraint off your $widget with 'Range' and the name 'foo', then you set a min and a max and you're literally done. main character energy ✨


✨ DESCRIPTION ✨

Range Constraint. That's it. That's the description. Short queen behavior, we respect it πŸŽ€


✨ METHODS ✨

three methods, one per bullet-ish moment, here we go 🫢

maximum

Arguments: $max_value β€” you hand it the top of your range. the ceiling. the limit. the "no further than this" πŸ’–

minimum

Arguments: $min_value β€” and this one's the floor of your range. the "nothing below this" ✨

validate

okay so the page lists validate as a method but gives it zero arguments and zero description. not me being tempted to make stuff up πŸ™ˆ β€” bestie, we do NOT invent facts around here. It's listed, that's what the docs say, and that's what you get πŸ’€


✨ AUTHOR ✨

Sebastian Riedel, sri@oook.de πŸ‘‘ iconic, we stan.


✨ LICENSE ✨

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. so go off, remix it, it's giving open source πŸŒˆπŸ’œ


fr fr, quick recap so you don't have to scroll: HTML::Widget::Constraint::Range, a Range Constraint, built with $widget->constraint( 'Range', 'foo' ), tuned with ->min(23) and ->max(30), methods are maximum (takes $max_value), minimum (takes $min_value) and validate (takes, uh, nothing documented). That's the whole thing bestie πŸ’…

and that's a wrap on this page, babes β€” it came from perl v5.36.0, dated 2023-08-10, and it's filed under HTML::...::Range(3pm). periodt. πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from