private static boolean shouldMarshalEncoding(IRubyObject value) { if (!(value instanceof MarshalEncoding)) return false; return ((MarshalEncoding) value).shouldMarshalEncoding(); }
public void dumpVariablesWithEncoding(List<Variable<Object>> vars, IRubyObject obj) throws IOException { if (shouldMarshalEncoding(obj)) { writeInt(vars.size() + 1); // vars preceded by encoding writeEncoding(((MarshalEncoding)obj).getMarshalEncoding()); } else { writeInt(vars.size()); } dumpVariablesShared(vars); }
public void dumpVariablesWithEncoding(List<Variable<Object>> vars, IRubyObject obj) throws IOException { if (shouldMarshalEncoding(obj)) { writeInt(vars.size() + 1); // vars preceded by encoding writeEncoding(((MarshalEncoding)obj).getMarshalEncoding()); } else { writeInt(vars.size()); } dumpVariablesShared(vars); }
public void dumpVariablesWithEncoding(List<Variable<Object>> vars, IRubyObject obj) throws IOException { if (shouldMarshalEncoding(obj)) { writeInt(vars.size() + 1); // vars preceded by encoding writeEncoding(((MarshalEncoding)obj).getMarshalEncoding()); } else { writeInt(vars.size()); } dumpVariablesShared(vars); }
private static boolean shouldMarshalEncoding(IRubyObject value) { if (!(value instanceof MarshalEncoding)) return false; return ((MarshalEncoding) value).shouldMarshalEncoding(); }
public void dumpVariablesWithEncoding(List<Variable<Object>> vars, IRubyObject obj) throws IOException { if (shouldMarshalEncoding(obj)) { writeInt(vars.size() + 1); // vars preceded by encoding writeEncoding(((MarshalEncoding)obj).getMarshalEncoding()); } else { writeInt(vars.size()); } dumpVariablesShared(vars); }
private boolean shouldMarshalEncoding(IRubyObject value) { if (!runtime.is1_9()) return false; if (!(value instanceof MarshalEncoding)) return false; return ((MarshalEncoding) value).shouldMarshalEncoding(); }
private boolean shouldMarshalEncoding(IRubyObject value) { if (!runtime.is1_9()) return false; if (!(value instanceof MarshalEncoding)) return false; return ((MarshalEncoding) value).shouldMarshalEncoding(); }