Example #1
0
 /** match_size */
 @JRubyMethod(name = {"size", "length"})
 public IRubyObject size(ThreadContext context) {
   check();
   Ruby runtime = context.getRuntime();
   return regs == null ? RubyFixnum.one(runtime) : RubyFixnum.newFixnum(runtime, regs.numRegs);
 }