[patch] downto/upto

Hey,

In the process of running one of my script on IronRuby I needed upto,
so here it is, along with his downto friend.

I was wondering if I could simply call Step with the relevant limit
and step from upto/downto, but wasn’t sure that was correct.

I’ve basically monkey saw, monkey did the whole thing, please correct
me if I got some parts wrong.

Jb Evain:

In the process of running one of my script on IronRuby I needed upto,
so here it is, along with his downto friend.

I was wondering if I could simply call Step with the relevant limit
and step from upto/downto, but wasn’t sure that was correct.

I’ve basically monkey saw, monkey did the whole thing, please correct
me if I got some parts wrong.

Looks good. I think you’re right about Step though. I’ll try replacing
the methods with direct calls to Step and see if it works.

  • John

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs