From: Abder-Rahman Ali Date: 2010-07-13T23:21:43+09:00 Subject: Re: What is meant by those lines of code in this script? Peter Hickman wrote: > On 13 July 2010 14:26, Abder-Rahman Ali > wrote: >> What was the purpose of "open" as a second argument then? > > > RTFM http://www.ruby-doc.org/core/classes/String.html I saw it is a range? Like in the documentation: a = "hello there" a[1,3] #=> "ell" But, in the example I provided close = sentence.index(')', open) I get ) ( Still not getting the purpose. Thanks. -- Posted via http://www.ruby-forum.com/.