grep {defined} @_;
}
+sub stash_name { $_[0] }
+
sub of {
my $class = shift @_;
my $hinthash = ( caller 0 )[10];
my %tags;
- @tags{ _unpack_tags( $hinthash->{$class} ) } = ();
+ @tags{ _unpack_tags( $hinthash->{ $class->stash_name } ) } = ();
if (@_) {
exists $tags{$_} and return !!1 for @_;
@_ = 'please' if not @_;
my %tags;
- @tags{ _unpack_tags( @_, $^H{$class} ) } = ();
+ @tags{ _unpack_tags( @_, $^H{ $class->stash_name } ) } = ();
$^H{$class} = _pack_tags( keys %tags );
return;
my $new = _pack_tags( keys %tags );
if ( not length $new ) {
- delete $^H{$class};
+ delete $^H{ $class->stash_name };
}
else {
- $^H{$class} = $new;
+ $^H{ $class->stash_name } = $new;
}
}
else {
- delete $^H{$class};
+ delete $^H{ $class->stash_name };
}
return;