From: Sard Aukary Date: 2006-08-11T03:33:14+09:00 Subject: Re: Method arguments. Jim Weirich wrote: > In your particular case, it can be restated as: > > puts "this is a test"[4..-1] > > Where the -1 refers to the end of the string. > > I'm not sure how your example relates to function arguments ... but is > this helpfull? > > -- Jim Weirich Ah yes, -1 is the most obvious way of to get the end reference. I was just wondering if there was some sort of reflective way of getting a reference to the "this is a test" string from with the [] method. Thanks. -- Posted via http://www.ruby-forum.com/.