From: James Harrison Date: 2010-07-14T06:50:50+09:00 Subject: Re: What does this do? On Jul 13, 2010, at 3:26 PM 7/13/10, Abder-Rahman Ali wrote: > I have this portion of code from "Why's poignant guide to Ruby" book. > > str = "A string is a long shelf of letters and spaces" # Nice definition > :-) > puts str[0..-1] > puts str[1..-2] > > I just want to ask. Does the preceding code REMOVE what is BETWEEN the > range? no > I just concluded that from the result I get and want to make > sure. > I've seen you a couple of times today. Do you know what irb is? I don't think you do, but I want to make sure. It'll help reading why's guide (which is where I learned ruby too...) > Thanks. > -- > Posted via http://www.ruby-forum.com/. >