Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17928: Adding a method to know which serializer...

Committer: gariev
Adding a method to know which serializer is in use
U   trunk/cgi-bin/LJ/JSON.pm
Modified: trunk/cgi-bin/LJ/JSON.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON.pm	2010-12-14 06:14:00 UTC (rev 17927)
+++ trunk/cgi-bin/LJ/JSON.pm	2010-12-14 07:18:25 UTC (rev 17928)
@@ -15,6 +15,10 @@
     return $wrap->decode($dump);
 }
 
+sub class {
+    return ref $wrap;
+}
+
 sub true  { $wrap->true  };
 sub false { $wrap->false };
 

Tags: gariev, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments