@JRubyMethod(name = "new", rest = true, frame = true, meta = true)
public static IRubyObject new_instance(IRubyObject self, IRubyObject[] args, Block block) {
// Generator#new
IRubyObject result = new RubyObject(self.getRuntime(),(RubyClass)self);
result.dataWrapStruct(new GeneratorData(result));
result.callMethod(self.getRuntime().getCurrentContext(), "initialize", args, block);
return result;
}
@JRubyMethod(optional = 1, frame = true, visibility = Visibility.PRIVATE)