Sha256: 9c25d92418ba92c1367a79eaa513f13de122cbd6dad253546a0b809c68d3c8d7
Contents?: true
Size: 744 Bytes
Versions: 135
Compression:
Stored size: 744 Bytes
Contents
package com.xruby.compiler.codegen; public class ClassDumper { private static boolean dump; private static String dumpPath; private static ClassFileWriter cfw; private static String separator; static { dump = Boolean.getBoolean("xruby.method.dump"); if (dump) { dumpPath = System.getProperty("xruby.method.dump_path"); cfw = new ClassFileWriter(); separator = System.getProperty("file.separator"); } } public void dump(String classname, byte[] contents) { if (dump) { try { if (!dumpPath.endsWith(separator)) { dumpPath += separator; } String filename = dumpPath + classname + ".class"; cfw.write(filename, contents); } catch (Exception e) { } } } }
Version data entries
135 entries across 135 versions & 2 rubygems