Implemented ``del'' as required by the interface.
authorocto <octo>
Sun, 10 Apr 2005 16:34:09 +0000 (16:34 +0000)
committerocto <octo>
Sun, 10 Apr 2005 16:34:09 +0000 (16:34 +0000)
lib/Onis/Data/Persistent/None.pm

index b9a7020..35a0dec 100644 (file)
@@ -117,6 +117,17 @@ sub keys
        }, @keys);
 }
 
+sub del
+{
+       my $obj = shift;
+       my $key = shift;
+
+       if (defined ($obj->{'data'}{$key}))
+       {
+               delete ($obj->{'data'}{$key});
+       }
+}
+
 =head1 AUTHOR
 
 Florian octo Forster, L<octo@verplant.org>