Sha256: 9e18e0e1d763ce4a41d6c6a17ffe13fdc8a0777a17d87f3910b702834cb49d3e

Contents?: true

Size: 819 Bytes

Versions: 4

Compression:

Stored size: 819 Bytes

Contents

package com.jrjackson;

import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.RubyClass;
import org.jruby.RubyObject;
import org.jruby.runtime.ObjectAllocator;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.runtime.load.BasicLibraryService;

import java.io.IOException;

public class JrJacksonService implements BasicLibraryService {
  public boolean basicLoad(final Ruby ruby) throws IOException {
    RubyModule jr_jackson = ruby.defineModule("JrJackson");

    RubyModule jr_jackson_raw = ruby.defineModuleUnder("Raw", jr_jackson);
    jr_jackson_raw.defineAnnotatedMethods(JrJacksonRaw.class);

    RubyClass runtimeError = ruby.getRuntimeError();
    RubyClass parseError = jr_jackson.defineClassUnder("ParseError", runtimeError, runtimeError.getAllocator());
    return true;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jrjackson-0.2.6 src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.5 src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.4 src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.3 src/main/java/com/jrjackson/JrJacksonService.java