| 1 | # [[[ HEADER ]]] | ||
| 2 | package Perl::Structure::Hash::Properties; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes | ||
| 6 | our $VERSION = 0.001_100; | ||
| 7 | |||
| 8 | # [[[ OO INHERITANCE ]]] | ||
| 9 | use parent qw(Perl::Structure::Hash); | ||
| 10 | use Perl::Structure::Hash; | ||
| 11 | |||
| 12 | # [[[ CRITICS ]]] | ||
| 13 | ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator | ||
| 14 | ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names | ||
| 15 | |||
| 16 | # [[[ INCLUDES ]]] | ||
| 17 | use Scalar::Util 'blessed'; | ||
| 18 | |||
| 19 | # [[[ OO PROPERTIES ]]] | ||
| 20 | our hashref $properties = { # whoah, so meta | ||
| 21 | property_entries => my object_hashref $TYPED_property_entries = undef | ||
| 22 | }; | ||
| 23 | |||
| 24 | # [[[ SUBROUTINES & OO METHODS ]]] | ||
| 25 | |||
| 26 | # ... | ||
| 27 | |||
| 28 | # [[[ SUB-TYPES ]]] | ||
| 29 | |||
| 30 | # a property is a data structure belonging to a class or object, each RPerl object has a properties hash | ||
| 31 | package # hide from PAUSE indexing | ||
| 32 | properties; | ||
| 33 | use strict; | ||
| 34 | use warnings; | ||
| 35 | use parent qw(Perl::Structure::Hash::Properties); | ||
| 36 | |||
| 37 | 1; # end of class |