What is the difference between Object, Kernel, and BasicObject?

Last updated 27 June 2026

  • BasicObject is the bare root with almost no methods, useful as a clean slate for proxies and DSLs.

  • Kernel is a module (not a class) providing puts, require, raise. It is mixed into Object, so these seem available everywhere.

  • Object inherits from BasicObject, includes Kernel, and is the default superclass, giving to_s, inspect, respond_to?.

  • https://medium.com/@hpultimatemedia/advanced-ruby-programming-tutorial-9bebc6335c21
  • https://hellointern.in/blog/ruby-interview-questions-and-answers-for-2-years-experience-28493
  • https://www.reddit.com/r/rails/comments/1eb4wfx/ruby_on_rails_role_interview_what_questions_to/
  • https://news.ycombinator.com/item?id=42495135
  • https://www.adaface.com/blog/ruby-on-rails-interview-questions/
  • https://lemon.io/interview-questions/python/
  • https://www.kore1.com/hire-elixir-developers-2026/
  • https://www.testgorilla.com/blog/elixir-developer-interview-questions/
  • https://pragtob.wordpress.com/
All Ruby interview questions