@JRubyMethod(name = "reference_required", module=true, optional = 1) public static IRubyObject reference_required(ThreadContext context, IRubyObject self, IRubyObject[] args) { module(self).setInternalVariable("reference_required", context.runtime.newBoolean(args.length < 1 || args[0].isTrue())); return self; } }
Type.createTypeClass(runtime, ffi); DataConverter.createDataConverterModule(runtime, ffi);
Type.createTypeClass(runtime, ffi); DataConverter.createDataConverterModule(runtime, ffi);
@JRubyMethod(name = "reference_required", module=true, optional = 1) public static IRubyObject reference_required(ThreadContext context, IRubyObject self, IRubyObject[] args) { module(self).setInternalVariable("reference_required", context.runtime.newBoolean(args.length < 1 || args[0].isTrue())); return self; } }
Type.createTypeClass(runtime, ffi); DataConverter.createDataConverterModule(runtime, ffi);
@JRubyMethod(name = "reference_required?", module=true) public static IRubyObject reference_required_p(ThreadContext context, IRubyObject self) { Object ref = module(self).getInternalVariable("reference_required"); return context.runtime.newBoolean(!(ref instanceof IRubyObject) || ((IRubyObject) ref).isTrue()); }
Type.createTypeClass(runtime, ffi); DataConverter.createDataConverterModule(runtime, ffi);
@JRubyMethod(name = "reference_required", module=true, optional = 1) public static IRubyObject reference_required(ThreadContext context, IRubyObject self, IRubyObject[] args) { module(self).setInternalVariable("reference_required", context.runtime.newBoolean(args.length < 1 || args[0].isTrue())); return self; } }
@JRubyMethod(name = "reference_required", module=true, optional = 1) public static IRubyObject reference_required(ThreadContext context, IRubyObject self, IRubyObject[] args) { module(self).setInternalVariable("reference_required", context.runtime.newBoolean(args.length < 1 || args[0].isTrue())); return self; } }
@JRubyMethod(name = "reference_required?", module=true) public static IRubyObject reference_required_p(ThreadContext context, IRubyObject self) { Object ref = module(self).getInternalVariable("reference_required"); return context.runtime.newBoolean(!(ref instanceof IRubyObject) || ((IRubyObject) ref).isTrue()); }
@JRubyMethod(name = "reference_required?", module=true) public static IRubyObject reference_required_p(ThreadContext context, IRubyObject self) { Object ref = module(self).getInternalVariable("reference_required"); return context.runtime.newBoolean(!(ref instanceof IRubyObject) || ((IRubyObject) ref).isTrue()); }
@JRubyMethod(name = "reference_required?", module=true) public static IRubyObject reference_required_p(ThreadContext context, IRubyObject self) { Object ref = module(self).getInternalVariable("reference_required"); return context.runtime.newBoolean(!(ref instanceof IRubyObject) || ((IRubyObject) ref).isTrue()); }
@JRubyMethod(name = "native_type", module=true, optional = 1) public static IRubyObject native_type(ThreadContext context, IRubyObject self, IRubyObject[] args) { RubyModule m = module(self); if (args.length == 0) { if (!m.hasInternalVariable("native_type")) { throw context.runtime.newNotImplementedError("native_type method not overridden and no native_type set"); } return (Type) m.getInternalVariable("native_type"); } else if (args.length == 1) { Type type = Util.findType(context, args[0]); m.setInternalVariable("native_type", type); return type; } else { throw context.runtime.newArgumentError("incorrect arguments"); } }
@JRubyMethod(name = "native_type", module=true, optional = 1) public static IRubyObject native_type(ThreadContext context, IRubyObject self, IRubyObject[] args) { RubyModule m = module(self); if (args.length == 0) { if (!m.hasInternalVariable("native_type")) { throw context.runtime.newNotImplementedError("native_type method not overridden and no native_type set"); } return (Type) m.getInternalVariable("native_type"); } else if (args.length == 1) { Type type = Util.findType(context, args[0]); m.setInternalVariable("native_type", type); return type; } else { throw context.runtime.newArgumentError("incorrect arguments"); } }
@JRubyMethod(name = "native_type", module=true, optional = 1) public static IRubyObject native_type(ThreadContext context, IRubyObject self, IRubyObject[] args) { RubyModule m = module(self); if (args.length == 0) { if (!m.hasInternalVariable("native_type")) { throw context.runtime.newNotImplementedError("native_type method not overridden and no native_type set"); } return (Type) m.getInternalVariable("native_type"); } else if (args.length == 1) { Type type = Util.findType(context, args[0]); m.setInternalVariable("native_type", type); return type; } else { throw context.runtime.newArgumentError("incorrect arguments"); } }
@JRubyMethod(name = "native_type", module=true, optional = 1) public static IRubyObject native_type(ThreadContext context, IRubyObject self, IRubyObject[] args) { RubyModule m = module(self); if (args.length == 0) { if (!m.hasInternalVariable("native_type")) { throw context.runtime.newNotImplementedError("native_type method not overridden and no native_type set"); } return (Type) m.getInternalVariable("native_type"); } else if (args.length == 1) { Type type = Util.findType(context, args[0]); m.setInternalVariable("native_type", type); return type; } else { throw context.runtime.newArgumentError("incorrect arguments"); } }