@Override @JRubyMethod(name="initialize", visibility = PRIVATE, required = 3, optional = 1) public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { IRubyObject type = args[2]; if (!(type instanceof StructByValue)) { throw context.runtime.newTypeError(type, context.runtime.getModule("FFI").getClass("Type").getClass("Struct")); } init(args, new InnerStructFieldIO((StructByValue) type)); return this; } }
@Override @JRubyMethod(name="initialize", visibility = PRIVATE, required = 3, optional = 1) public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { IRubyObject type = args[2]; if (!(type instanceof StructByValue)) { throw context.runtime.newTypeError(type, context.runtime.getModule("FFI").getClass("Type").getClass("Struct")); } init(args, new InnerStructFieldIO((StructByValue) type)); return this; } }
@Override @JRubyMethod(name="initialize", visibility = PRIVATE, required = 3, optional = 1) public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { IRubyObject type = args[2]; if (!(type instanceof StructByValue)) { throw context.runtime.newTypeError(type, context.runtime.getModule("FFI").getClass("Type").getClass("Struct")); } init(args, new InnerStructFieldIO((StructByValue) type)); return this; } }
@Override @JRubyMethod(name="initialize", visibility = PRIVATE, required = 3, optional = 1) public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { IRubyObject type = args[2]; if (!(type instanceof StructByValue)) { throw context.runtime.newTypeError(type, context.runtime.getModule("FFI").getClass("Type").getClass("Struct")); } init(args, new InnerStructFieldIO((StructByValue) type)); return this; } }