]> git.saurik.com Git - cycript.git/blobdiff - libcycript.cy
Made lots of progress on Java bridge (checkpoint).
[cycript.git] / libcycript.cy
index f5f63ea99bab3894649f54b6a24c9b8659e852a6..3517e733b96e0d586571fc1b75185c9ce1976dec 100644 (file)
@@ -133,6 +133,10 @@ if ("Java" in Cycript) {
     });
 
     $cy_set(java.lang.Object.prototype, {
+        toCYON: function(key) {
+            return "#" + this.toString().toCYON();
+        },
+
         // XXX: due to lack of interface prototypes :(
         $cyg: function(key) {
             return this.get(key);