Sha256: 8f2f84b4b6a85d2dabeef6ac22d8b22c15737af8c81615c82f1588df7b275f4d
Contents?: true
Size: 552 Bytes
Versions: 25
Compression:
Stored size: 552 Bytes
Contents
import org.jruby.Ruby; import org.jruby.RubyModule; import org.jruby.anno.JRubyMethod; import org.jruby.runtime.ThreadContext; import org.jruby.runtime.builtin.IRubyObject; import org.jruby.runtime.load.Library; import org.jruby.runtime.load.BasicLibraryService; import snappy.SnappyModule; public class SnappyExtService implements BasicLibraryService { public boolean basicLoad(final Ruby runtime) { RubyModule snappyModule = runtime.defineModule("Snappy"); snappyModule.defineAnnotatedMethods(SnappyModule.class); return true; } }
Version data entries
25 entries across 25 versions & 1 rubygems