Skip to content

Commit fe7a265

Browse files
committed
Restore this name for transition purposes
Another one used by StringIO. See ruby/stringio#84 and ruby/stringio#88.
1 parent 46cef2e commit fe7a265

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/org/jruby/RubyString.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,11 @@ private IRubyObject byteARef(Ruby runtime, IRubyObject idx) {
35353535
return obj;
35363536
}
35373537

3538+
@Deprecated
3539+
public final IRubyObject substr19(Ruby runtime, int beg, int len) {
3540+
return substrEnc(runtime, beg, len);
3541+
}
3542+
35383543
public final IRubyObject substrEnc(Ruby runtime, int beg, int len) {
35393544
if (len < 0) return runtime.getNil();
35403545
int length = value.getRealSize();

0 commit comments

Comments
 (0)