@JRubyMethod(name = "printf", required = 1, rest = true) public IRubyObject printf(ThreadContext context, IRubyObject[] args) { append(context, RubyKernel.sprintf(context, this, args)); return getRuntime().getNil(); }
@JRubyMethod(name = "printf", required = 1, rest = true) public IRubyObject printf(ThreadContext context, IRubyObject[] args) throws IOException { write(RubyKernel.sprintf(context, this, args)); return context.getRuntime().getNil(); }