What does the super keyword do, and how does it differ when called with vs. without parentheses?

Last updated 27 June 2026

  • `super` calls the same-named method in the next ancestor (superclass or included module, per ancestors).

  • Bare super automatically forwards the current method's original arguments, even if the parameter variables were reassigned.

  • super() passes no arguments, while super(a, b) passes exactly the arguments you list.

  • https://www.reddit.com/r/rails/comments/1shfrbq/3_years_rails_dev_but_failed_basic_interview/
All Ruby interview questions