X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FStorage%2FUtil.pm;fp=lib%2FMooseX%2FStorage%2FUtil.pm;h=c652f2e16d893dff785e8fa8237f9fa3dc2f322c;hb=1f2883b2c4c74ee69739b6e5d272ab190c11f039;hp=20da8db214e2c5253841478b85ac1252b9d61e38;hpb=8af2c2b01fe7c63f2748d1b1deca3198c8974b7f;p=gitmo%2FMooseX-Storage.git diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 20da8db..c652f2e 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -27,7 +27,7 @@ sub peek { } sub _inflate_json { - my ($class, $json) = @_; + my ($self, $json) = @_; eval { require JSON::Any; JSON::Any->import }; confess "Could not load JSON module because : $@" if $@; @@ -43,7 +43,7 @@ sub _inflate_json { } sub _inflate_yaml { - my ($class, $yaml) = @_; + my ($self, $yaml) = @_; require Best; eval { Best->import([[ qw[YAML::Syck YAML] ]]) };