Sha256: 89d5b6a9886e395c15ac7ab0186d544e62551e040bc4222be9bbeaabb47b8db6
Contents?: true
Size: 460 Bytes
Versions: 102
Compression:
Stored size: 460 Bytes
Contents
package com.jrjackson; import com.fasterxml.jackson.core.*; import java.io.IOException; import java.nio.CharBuffer; import org.jruby.Ruby; import org.jruby.RubyObject; public class RubyStringConverter implements RubyConverter { @Override public RubyObject convert(Ruby ruby, JsonParser jp) throws IOException { return RubyUtils.rubyString(ruby, CharBuffer.wrap(jp.getTextCharacters(), 0, jp.getTextLength()) ); } }
Version data entries
102 entries across 90 versions & 17 rubygems