What’s the fastest way to check for Ruby 2.4+? The best I’ve got is: 0.class == Integer Have a better idea? (Please include IPS benchmark.)
-
-
Both can be changed in >2.4 again, why not a canonical one `RUBY_VERSION` correctness > speed.
-
he was asking for fun / trivia
-
I did not got that one. Sorry.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.