Forum: Ruby Re: string slice elegant way

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-03-03 15:38
(Received via mailing list)
You can use

a="hello there"
p b => "llo there"


chops off from the end.

Best regards,

This topic is locked and can not be replied to.