When using negative indexes to get a slice of a string, Ruby counts from the end. It automatically assumes that, for instance, -1 means length of the string ...
確定! 回上一頁