@Specialization public RubyString toS(VirtualFrame frame, RubyRange.ObjectRange range) { notDesignedForCompilation(); // TODO(CS): cast? final RubyString begin = (RubyString) toS.call(frame, range.getBegin(), "to_s", null); final RubyString end = (RubyString) toS.call(frame, range.getBegin(), "to_s", null); return getContext().makeString(begin + (range.doesExcludeEnd() ? "..." : "..") + end); }