@JRubyMethod(name = "=~") @Override public IRubyObject op_match(ThreadContext context, IRubyObject other) { return newShared(context.runtime).op_match(context, other); }
@JRubyMethod(name = "match?") public IRubyObject match_p(ThreadContext context, IRubyObject other, IRubyObject pos) { return newShared(context.runtime).match_p(context, other, pos); }
@JRubyMethod(name = "empty?") public IRubyObject empty_p(ThreadContext context) { return newShared(context.runtime).empty_p(context); }
@JRubyMethod(name = "match", required = 1, rest = true) public IRubyObject match_m(ThreadContext context, IRubyObject[] args, Block block) { return newShared(context.runtime).match19(context, args, block); }
@JRubyMethod(name = "match?") public IRubyObject match_p(ThreadContext context, IRubyObject other) { return newShared(context.runtime).match_p(context, other); }
@JRubyMethod(name = {"succ", "next"}, compat = CompatVersion.RUBY1_9) public IRubyObject succ(ThreadContext context) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).succ19(context).toString()); }
@JRubyMethod public IRubyObject downcase(ThreadContext context, IRubyObject arg0, IRubyObject arg1) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).downcase(context, arg0, arg1).getByteList()); }
@JRubyMethod public IRubyObject capitalize(ThreadContext context, IRubyObject arg) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).capitalize(context, arg).getByteList()); }
@JRubyMethod public IRubyObject upcase(ThreadContext context, IRubyObject arg) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).upcase(context, arg).getByteList()); }
@JRubyMethod public IRubyObject swapcase(ThreadContext context) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).swapcase(context).getByteList()); }
@JRubyMethod public IRubyObject capitalize(ThreadContext context) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).capitalize(context).getByteList()); }
@JRubyMethod public IRubyObject upcase(ThreadContext context) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).upcase(context).getByteList()); }
@JRubyMethod public IRubyObject upcase(ThreadContext context, IRubyObject arg) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).upcase(context, arg).getByteList()); }
@JRubyMethod public IRubyObject downcase(ThreadContext context, IRubyObject arg) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).downcase(context, arg).getByteList()); }
@JRubyMethod public IRubyObject capitalize(ThreadContext context, IRubyObject arg) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).capitalize(context, arg).getByteList()); }
@JRubyMethod(name = {"length", "size"}) public IRubyObject length() { final Ruby runtime = getRuntime(); return RubyFixnum.newFixnum(runtime, newShared(runtime).strLength()); }
@JRubyMethod public IRubyObject swapcase(ThreadContext context, IRubyObject arg0, IRubyObject arg1) { Ruby runtime = context.runtime; return newSymbol(runtime, newShared(runtime).swapcase(context, arg0, arg1).getByteList()); }