public static RubyModule createMarshalModule(Ruby runtime) { RubyModule module = runtime.defineModule("Marshal"); runtime.setMarshal(module); module.defineAnnotatedMethods(RubyMarshal.class); module.defineConstant("MAJOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MAJOR)); module.defineConstant("MINOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MINOR)); return module; }
public static RubyModule createMarshalModule(Ruby runtime) { RubyModule module = runtime.defineModule("Marshal"); runtime.setMarshal(module); module.defineAnnotatedMethods(RubyMarshal.class); module.defineConstant("MAJOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MAJOR)); module.defineConstant("MINOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MINOR)); return module; }
public static RubyModule createMarshalModule(Ruby runtime) { RubyModule module = runtime.defineModule("Marshal"); runtime.setMarshal(module); module.defineAnnotatedMethods(RubyMarshal.class); module.defineConstant("MAJOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MAJOR)); module.defineConstant("MINOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MINOR)); return module; }
public static RubyModule createMarshalModule(Ruby runtime) { RubyModule module = runtime.defineModule("Marshal"); runtime.setMarshal(module); module.defineAnnotatedMethods(RubyMarshal.class); module.defineConstant("MAJOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MAJOR)); module.defineConstant("MINOR_VERSION", runtime.newFixnum(Constants.MARSHAL_MINOR)); return module; }