This is a feature I've implemented several times myself as well and would seem to be useful to have in core. Ryan, what is the recommended way of making these proposals? Just post a message to the ruby-core mailing list? Open a ticket? Do we still have some sort of RCRchive?
It's been a while since I've asked for something in Ruby
-greg
···
On 3/19/12 7:28 AM, Ryan Davis wrote:
On Mar 18, 2012, at 22:09 , Jan E. wrote:
class Integer
def to limit,&block
if self<= limit
upto limit,&block
else
downto limit,&block
end
end