Ruby equivalent of Python str[3:]

python, ruby, substring

Solution

Pass a range with last element = -1

str[3..-1]

Problem

Is there a Ruby equivalent of Python's method for getting a substring that ends at the end of the string, like `str[3:]`? It's not convenient to have to put in the length of the string.

Original source