| 1 | # | ||
| 2 | # $Id: Passive.pm,v 008243d3e89a 2018/07/21 14:54:07 gomor $ | ||
| 3 | # | ||
| 4 | package Net::SinFP3::Next::Passive; | ||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use base qw(Net::SinFP3::Next); | ||
| 9 | our @AS = qw( | ||
| 10 | sp | ||
| 11 | ); | ||
| 12 | __PACKAGE__->cgBuildIndices; | ||
| 13 | __PACKAGE__->cgBuildAccessorsScalar(\@AS); | ||
| 14 | |||
| 15 | use Net::SinFP3::Ext::SP; | ||
| 16 | |||
| 17 | sub new { | ||
| 18 | my $self = shift->SUPER::new( | ||
| 19 | sp => Net::SinFP3::Ext::SP->new, | ||
| 20 | @_, | ||
| 21 | ); | ||
| 22 | |||
| 23 | return $self; | ||
| 24 | } | ||
| 25 | |||
| 26 | sub print { | ||
| 27 | my $self = shift; | ||
| 28 | |||
| 29 | my $buf = 'SP: '.$self->sp->print; | ||
| 30 | |||
| 31 | return $buf; | ||
| 32 | } | ||
| 33 | |||
| 34 | 1; | ||
| 35 | |||
| 36 | __END__ |