Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- end
- class B < A
- end
- B.singleton_class.superclass #=> #<Class:A>
- B.singleton_class.ancestors #=> [Class, Module, Object, BasicObject]
- # why isn't the superclass included in the ancestor chain?
Add Comment
Please, Sign In to add comment