"string_name = string_name[3..-1]" what could the following line of ruby code mean?
- by Mo
Hi,
I'm looking at some external code and saw a line of Ruby code that looks like this
string_name = string_name[3..-1]
what does the [n..-x] do or mean?
Thanks.