| 1 | package EPL2::Command::Q; | ||||||||||||||
| 2 | # ABSTRACT: Q Command (Set Form Length) | ||||||||||||||
| 3 | 1 | $EPL2::Command::Q::VERSION = '0.001'; | |||||||||||||
| 4 | 3 | ▶ | use 5.010; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | 3 | ▶ | use Moose; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | 3 | ▶ | use MooseX::Method::Signatures; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | 3 | ▶ | use namespace::autoclean; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | 3 | ▶ | use EPL2::Types 'Padheight'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 9 | |||||||||||||||
| 10 | 1 | extends 'EPL2::Command'; | |||||||||||||
| 11 | |||||||||||||||
| 12 | #Public Attributes | ||||||||||||||
| 13 | 1 | has height => ( is => 'rw', isa => Padheight, default => 0, ); | |||||||||||||
| 14 | 1 | has continuous => ( is => 'rw', isa => 'Bool', default => 1, ); | |||||||||||||
| 15 | |||||||||||||||
| 16 | #Methods | ||||||||||||||
| 17 | 0 | ▶ | method string ( Str :$delimiter = "\n" ) { | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.4
Subroutine
__ANON__: not called CC=2 SCAR=8.7
Subroutine
string: called CC=2 SCAR=8.7
| |||||||||||||||
| 18 | 0 | my $string = sprintf 'Q%d', $self->height; | |||||||||||||
| 19 | 0 | ▶ | $string .= ',0' if ( $self->continuous ); | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 20 | 0 | return $string . $delimiter; | |||||||||||||
| 21 | 1 | } | |||||||||||||
| 22 | |||||||||||||||
| 23 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||||
| 24 | |||||||||||||||
| 25 | 1 | 1; | |||||||||||||
| 26 | |||||||||||||||
| 27 | __END__ | ||||||||||||||