Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Range#step behavior is different from core Ruby #6297
If this can't be changed, is there a way to opt out of this specific behavior?
>> (0..10).step(2) => #<Enumerator: 0..10:step(2)> >> require 'active_support/core_ext' => true >> (0..10).step(2) => [0, 2, 4, 6, 8, 10]
According to the code, it overrides
There's no way to opt-out of this particular behavior, unless you require all stuff you want manually. Anyway, I believe the monkey patch could be removed, as one could just call
@jeremy thoughs on this one?