From: Robert Dober Date: 2009-05-09T17:22:30+09:00 Subject: Re: ruby string slice/[] w/ range, weird end behavior (RANT) On Sat, May 9, 2009 at 3:12 AM, Eleanor McHugh wrote: > On 9 May 2009, at 01:23, Gary Yngve wrote: >> >> Are replies to this group always like this? >> >> someone blindly posts the doc without reading that I already posted >> the doc or reading my example (like an implicit RTFM) >> other folks automatically assume I'm a newb and respond in five >> seconds without fully reading my post or thinking about their own post > > Yes. We all have our moron moments. After all, the String.[] documentation Speak for yourself, I am *always* a moron (luckily I have no idea what that means). > clearly states: > >     Element Reference---If passed a single +Fixnum+, returns a >     substring of one character at that position. Does it? Well I guess so, for Ruby1.8.* ;) OP will be pleased with Ruby1.9 I guess. Cheers Robert