str[index] â new_str or nilstr[start, length] â new_str or nilstr[range] â new_str or nilstr[regexp] â new_str or nilstr[regexp, capture] â new_str or nilstr[match_str] â new_str or nil
Instance Public methods
Element Reference â If passed a single index, returns a
substring of one character at that index. If passed a start
index and a length, returns a substring containing
length characters starting at the in