@Specialization public RubyString downcase(RubyString string) { return string.getRubyClass().getContext().makeString(string.toString().toLowerCase()); }
@Specialization public RubyString reverse(RubyString string) { return RubyString.fromJavaString( string.getRubyClass(), new StringBuilder(string.toString()).reverse().toString()); }
@Specialization public RubyString chomp(RubyString string) { return string.getRubyClass().getContext().makeString(string.toString().trim()); }