Guest User

Untitled

a guest
Dec 13th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ObjectSpace.each_object(Module).select { |m| m.instance_method(:===).owner == m if m.method_defined? :=== }
  2. => [
  3. [ 0] Date < Object,
  4. [ 1] Gem::Platform < Object,
  5. [ 2] Proc < Object,
  6. [ 3] Range < Object,
  7. [ 4] Regexp < Object,
  8. [ 5] Bignum < Integer,
  9. [ 6] Float < Numeric,
  10. [ 7] Fixnum < Integer,
  11. [ 8] Symbol < Object,
  12. [ 9] String < Object,
  13. [10] Kernel,
  14. [11] Module < Object,
  15. [12] Gem::Requirement < Object
  16. ]
Add Comment
Please, Sign In to add comment