try {
// TODO: MRI behavior is more complicated than that,
// there is some magic when dealing with negative indexes.
return runtime.newString((String) holder.history.getHistoryList().get(i));
} catch (IndexOutOfBoundsException ioobe) {
throw runtime.newIndexError("invalid history index: " + i);
}
}
@JRubyMethod(name = "[]=")
public static IRubyObject s_hist_set(IRubyObject recv, IRubyObject index, IRubyObject val) {