SyntaxFix
Write A Post
Hire A Developer
Questions
You can always use something like
"string".sub!(/.{X}$/,'')
Where X is the number of characters to remove.
X
Or with assigning/using the result:
myvar = "string"[0..-X]
where X is the number of characters plus one to remove.