There's an interesting bug happening on Ruby's standard library where this code triggers an exception (and it shouldn't, IMO):
and here's my attempt to fix it:
Got a lot of fun recalling the networking algebra just for the sake of having tests to support the patch - there were no test for `to_range'
Team Lead at andros.
A Mastodon instance for Rubyists & friends