The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Renard::Incunabula::Document::Role::Pageable - Role for documents that have numbered pages

VERSION

version 0.005

ATTRIBUTES

first_page_number

A PageNumber containing the first page number of the document. This is always 1.

last_page_number

A PageNumber containing the last page number of the document.

number_of_pages

  isa => PageCount

Calculates the number of pages between the first_page_number and last_page_number.

METHODS

is_valid_page_number

  method is_valid_page_number( $page_number ) :ReturnType(Bool)

Returns true if $page_number is a valid PageNumber and is between the first and last page numbers inclusive.

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.