From: Farrel Lifson Date: 2006-08-10T20:26:45+09:00 Subject: Re: Method arguments. On 10/08/06, Sard Aukary wrote: > Is there a way to refer to the arguments passed to a function, so I can > avoid re-stating the argument inside it like the example below? > > puts "this is a test"[4.."this is a test".length] > > -- > Posted via http://www.ruby-forum.com/. > > Is there a reason you can't put it in a varialbe beforehand? string = "this is a test" puts string[4..string.length] Farrel