super vs super() in Ruby
Here is some Ruby code I wrote the other day (shortened for the purpose of this article)
When I ran the following code, I got an ArgumentError
The error complained that I was passing in 1 argument for the initialize method in class A. The reason the ArgumentError appears is super in the subclass will take with it any parameters that were sent to the initialize method. To avoid sending the parameters, call super with parentheses. Thus, the initialize method for class B should be