Jeremy Evans e79fc05a4c [ruby/prime] Fix Prime.include?
Previously, it would be an infinite loop if passed a non-prime
integer.

Also, Prime.include? should also provide similar results to
Module#include? if passed a Module, so handle that.

For consistency with Enumerable#include?, return false if passed
other object types.

Fixes Ruby Bug 10167.

https://github.com/ruby/prime/commit/55dda6aa7f
2020-03-06 20:54:33 +09:00
..
2020-03-02 13:14:38 +09:00
2020-02-26 10:16:32 +09:00
2020-03-04 21:00:17 +09:00
2020-02-29 15:14:01 +09:00
2020-03-04 23:26:57 +09:00
2020-02-23 13:37:40 +09:00
2020-02-25 17:47:17 +09:00
2020-03-02 14:42:33 +09:00
2020-03-05 16:49:27 -06:00
2020-03-06 20:54:33 +09:00