Data::Hopen::Class - Class::Tiny base class supporting
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.
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.