D
draco draco
Hello
I'm new to Ruby. I've a simple question.
Is there a more readable way to get last character from string than this
one? :
x = "text"
last_char = x[x.length-1, x.length-1]
I'm new to Ruby. I've a simple question.
Is there a more readable way to get last character from string than this
one? :
x = "text"
last_char = x[x.length-1, x.length-1]