示例#1
0
 @JRubyMethod(name = "printf", required = 1, rest = true)
 public IRubyObject printf(ThreadContext context, IRubyObject[] args) {
   append(context, RubyKernel.sprintf(context, this, args));
   return getRuntime().getNil();
 }
示例#2
0
 @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();
 }