Data::Hopen::Class - Class::Tiny base class supporting new(-arg => value)
new(-arg => value)
This is the same as Class::Tiny except for a custom BUILDARGS() method that permits you to put hyphens in front of the argument names in the constructor call. This provides consistency with Getargs::Mixed.
BUILDARGS()
Pre-process the constructor arguments to strip leading hyphens from argument names.
Note: Class::Tiny prohibits attributes named - (a single hyphen), so we don't handle that case.
-
To install Data::Hopen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Hopen
CPAN shell
perl -MCPAN -e shell install Data::Hopen
For more information on module installation, please visit the detailed CPAN module installation guide.