Controlling superclass argument pass-through in Ruby
22-Oct-2020 1356
In Ruby class-based programming, superclass versions of subclass methods are always invoked explicitly using the super keyword. There are some nuances to using super though, particularly when it comes to passing (or not passing) arguments and blocks along to the base class. In this sample from from the RubyTapas archives, we’ll talk about some of those “gotchas”.Director’s commentary: This was originally published as RubyTapas .
Controlling superclass argument pass-through in Ruby #ruby #rubydeveloper #rubyonrails #Controlling #superclass #argument #pass-through https://rubyonrails.ba/link/controlling-superclass-argument-pass-through-in-ruby