X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FHash.pm;h=de8f2bbe5b33e74877cdca334ae7003b61a96978;hb=2197a7c093124739caaae6be7b9ae213daefb598;hp=62b894670ba2f1eb129390a7ebf5eb60d67429b1;hpb=bf86a67cef80d4a0a8a81d7b3eea213ec8a90092;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Hash.pm b/lib/Moose/Autobox/Hash.pm index 62b8946..de8f2bb 100644 --- a/lib/Moose/Autobox/Hash.pm +++ b/lib/Moose/Autobox/Hash.pm @@ -23,6 +23,10 @@ sub hslice { return { map { $_ => $hash->{$_} } @$keys }; } +sub flatten { + return %{$_[0]} +} + # ::Indexed implementation sub at { @@ -98,6 +102,8 @@ shallow merging. Slices a hash but returns the keys and values as a new hashref. +=item B + =back =head2 Indexed implementation