------ art_1322_23117644.1145500308999
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I don't know the syntax.But I think it is same as
[1,2,3].all? {|i| i.positive?}
On 4/20/06, Jesse M <demon1312 / yahoo.com> wrote:
>
> Dave Burt wrote:
> > Jesse M wrote:
> >> Okay I've went through Chris Pines tutorial on
> >> programming(http://pine.fm/LearnToProgram/), and I still don't fully
> >> understand what I hear from experienced Ruby programmers. Is there any
> >> other tutorials that you might spare for a newbly soul such as mine?
> >
> > What don't you understand?
> >
> > Cheers,
> > Dave
>
> Well I see something like,
>
> lass Numeric
> def positive?
> self > 0
> end
> end
>
> [1, 2, 3].all? &:positive? => true
> [-1, 2, 3].all? &:positive? => false
>
> which i don't understand half of it :) and i'm really gung hoe about it!
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
--
Chaoqun Li
ThoughtWorks(Xi'an)
mobile phone:13909217679
office phone:029-87607341
------ art_1322_23117644.1145500308999--