1MooseX::NonMoose::InsidUesOeurt(C3o)ntributed Perl DocumMeonotsaetXi:o:nNonMoose::InsideOut(3)
2
3
4
6 MooseX::NonMoose::InsideOut - easy subclassing of non-Moose non-hashref
7 classes
8
10 version 0.26
11
13 package Term::VT102::NBased;
14 use Moose;
15 use MooseX::NonMoose::InsideOut;
16 extends 'Term::VT102';
17
18 has [qw/x_base y_base/] => (
19 is => 'ro',
20 isa => 'Int',
21 default => 1,
22 );
23
24 around x => sub {
25 my $orig = shift;
26 my $self = shift;
27 $self->$orig(@_) + $self->x_base - 1;
28 };
29
30 # ... (wrap other methods)
31
32 no Moose;
33 # no need to fiddle with inline_constructor here
34 __PACKAGE__->meta->make_immutable;
35
36 my $vt = Term::VT102::NBased->new(x_base => 0, y_base => 0);
37
40 Jesse Luehrs <doy@tozt.net>
41
43 This software is copyright (c) 2014 by Jesse Luehrs.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.38.0 2023-07-21 MooseX::NonMoose::InsideOut(3)