Guest User

Untitled

a guest
Jun 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. class A
  2. end
  3.  
  4. class B < A
  5. end
  6.  
  7. B.singleton_class.superclass #=> #<Class:A>
  8. B.singleton_class.ancestors #=> [Class, Module, Object, BasicObject]
  9.  
  10. # why isn't the superclass included in the ancestor chain?
Add Comment
Please, Sign In to add comment