MooseX...sideOut(3pm)

πŸ“¦
version 0.27 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

MooseX::NonMoose::InsideOut β€” the icon of subclassing non-Moose, non-hashref classes without losing your mind πŸ’…

okay so real talk, this module is the friend who shows up when you're trying to extends some ancient class that isn't Moose and isn't even a hashref, and it just... handles it. lowkey magic. no cap.


✨ VERSION ✨

version 0.27 πŸŽ€


🌸 SYNOPSIS 🌸

package Term::VT102::NBased;
use Moose;
use MooseX::NonMoose::InsideOut;
extends 'Term::VT102';

has [qw/x_base y_base/] => (
    is      => 'ro',
    isa     => 'Int',
    default => 1,
);

around x => sub {
    my $orig = shift;
    my $self = shift;
    $self->$orig(@_) + $self->x_base - 1;
};

# ... (wrap other methods)

no Moose;
# no need to fiddle with inline_constructor here
__PACKAGE__->meta->make_immutable;

my $vt = Term::VT102::NBased->new(x_base => 0, y_base => 0);

like, look at that. <pink>no need to fiddle with inline_constructor here</pink> β€” the comment is right there in the code, bestie, that's not me editorializing, that's the actual line πŸ’€βœ¨


πŸ¦‹ DESCRIPTION πŸ¦‹

this section is genuinely empty in the original, and I'm not about to invent lore for it πŸ™ˆ so yeah. that's the whole vibe. nothing to see here, moving on, we stay honest in this household 🫢


πŸ‘‘ AUTHOR πŸ‘‘

  • Original author: Jesse Luehrs <doy@tozt.net> πŸ’–
  • Current maintainer: Graham Ollis <plicease@cpan.org> 🌟

This software is copyright (c) 2009-2025 by Jesse Luehrs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ“ like, go wild, remix it, it's free fr fr.


and that's a wrap on the MooseX...sideOut(3pm) page, which came to you courtesy of perl v5.40.0 and was last touched on 2025-01-11 ✨ mwah, take care of her, she's iconic πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from