From: "Stephan Kämper" Date: 2002-02-07T21:43:40+09:00 Subject: Re: API questions Andy Neagu wrote: > > Hi everybody, > > I'm working on an extension to ruby that will allow me to work directly with > Orca (a dll that allows you to work directly with pbls - Powerbuilder > libraries). I'm not familiar with the ruby API's and I have some problems > (like documentation I'm using "Programming Ruby"). > > Then: > > How can I know the size of an ruby array? > You ask it: ary = Array.new # fill ary size = ary.size BTW, you can as well use ary.lenght. Stephan