From: Simon Strandgaard Date: 2003-11-17T10:55:40+09:00 Subject: Re: substring: to the end of the string On Sun, 16 Nov 2003 06:04:51 +0900, Josef 'Jupp' SCHUGT wrote: > Besids 'get used to -1'? Well, here's some extension to 'String'. I > did try my best to follow POLS. The intention is that left, right, > mid emulate BASIC's left$, right$ and mid$ while head and tail > without any arguments have the results they should have from a > functional programming point of view. > [snip class String extension] Useful.. I have added your snippet at rubygarden (StringSub): http://www.rubygarden.org/ruby?StandardClassExtensions/String -- Simon Strandgaard