avalanche123/zeromqrb — pull request #1 by jemc (2014-02-22 02:48:23+00:00)
Title: Select only the constants that are actually Errors

On Rubinius, there are a few other constants that end up under the Errno namespace (other than the myriad SystemCallError classes).

Ironically, one of these is Errno::Mapping, which ironically is there to serve the same purpose as the hash you're constructing here.

Anyway, adding this line will prevent the other constants from ending up in the inject block and raising an exception on Rubinius.