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.
Is there a Ruby equivalent of Python’s method for getting a substring that ends
Share
Pass a range with last element = -1