Astro-App-Satpass2
view release on metacpan or search on metacpan
lib/Astro/App/Satpass2/Format.pm view on Meta::CPAN
use parent qw{ Astro::App::Satpass2::Copier };
use Clone ();
use Astro::App::Satpass2::FormatTime;
use Astro::App::Satpass2::Utils qw{
instance
load_package __parse_class_and_args
CODE_REF
@CARP_NOT
};
use Scalar::Util 1.26 qw{ weaken };
our $VERSION = '0.056';
use constant DEFAULT_LOCAL_COORD => 'azel_rng';
# Note that the fact that new() works when called from
# My::Module::Test::App is unsupported and undocumented, and
# the functionality may be revoked or changed without warning.
my %static = (
lib/Astro/App/Satpass2/Format.pm view on Meta::CPAN
' may not be instantiated. Use a subclass' );
$self->{parent} = delete $args{parent};
# FIXME the below is verbatim from
# Astro::App::Satpass2::Macro->init(), ca. line 63.
defined $self->{parent}
or $self->wail( q{Attribute 'parent' is required} );
instance( $self->{parent}, 'Astro::App::Satpass2' )
or $self->wail( q{Attribute 'parent' must be an Astro::App::Satpass2} );
weaken( $self->{parent} );
exists $args{tz} or $args{tz} = $ENV{TZ};
$self->time_formatter( delete $args{time_formatter} );
$self->time_formatter()->warner( $self->warner() );
$args{date_format}
or $self->date_format( $self->time_formatter()->DATE_FORMAT() );
$args{time_format}
or $self->time_format( $self->time_formatter()->TIME_FORMAT() );
lib/Astro/App/Satpass2/Macro.pm view on Meta::CPAN
use strict;
use warnings;
use Astro::App::Satpass2::Utils qw{
instance
CODE_REF
@CARP_NOT
};
use Astro::App::Satpass2::Warner;
use Scalar::Util 1.26 qw{ weaken };
our $VERSION = '0.056';
sub new {
my ( $class, %arg ) = @_;
my $self = bless \%arg, ref $class || $class;
$self->init();
return $self;
}
lib/Astro/App/Satpass2/Macro.pm view on Meta::CPAN
and CODE_REF ne ref $self->{generate}
and $self->wail( q{If specified, 'generate' must be a code ref} );
defined $self->{name}
or $self->wail( q{Attribute 'name' is required} );
defined $self->{parent}
or $self->wail( q{Attribute 'parent' is required} );
instance( $self->{parent}, 'Astro::App::Satpass2' )
or $self->wail( q{Attribute 'parent' must be an Astro::App::Satpass2} );
weaken( $self->{parent} );
return;
}
sub name {
my ( $self ) = @_;
return $self->{name};
}
sub parent {
( run in 0.715 second using v1.01-cache-2.11-cpan-65fba6d93b7 )